/* ==========================================
   INSTALLER AUTH PAGES (Login/Forgot Password)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --secondary: #1F2937;
    --text-dark: #111827;
    --text-light: #6B7280;
    --text-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border: #E5E7EB;
    --danger: #EF4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Panel */
.auth-left {
    background: linear-gradient(135deg, var(--secondary) 0%, #111827 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    color: var(--text-white);
}

.auth-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    padding-left: 100px;
}

.auth-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.auth-content > p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 40px;
}

.auth-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.feature i {
    font-size: 1.2rem;
    color: var(--primary);
}

.feature span {
    font-size: 0.9rem;
}

.auth-footer {
    padding-top: 30px;
}

.auth-footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Right Panel */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-white);
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-form-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Error Box */
.error-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(239, 68, 68, 0.1);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border-left: 3px solid var(--danger);
}

.error-box i {
    color: var(--danger);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-box ul {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.error-box ul li {
    padding: 2px 0;
}

/* Form */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-icon {
    position: relative;
}

.input-icon i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-icon input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--text-dark);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.remember-me input {
    cursor: pointer;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--bg-white);
    padding: 0 15px;
    position: relative;
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-register {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    border-color: var(--secondary);
    background: var(--bg-light);
}

.back-to-site {
    text-align: center;
    margin-top: 30px;
}

.back-to-site a {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-site a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 30px 20px;
    }
    
    .auth-form-header h2 {
        font-size: 1.5rem;
    }
}
