/* Authentication Pages Styles */

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    align-items: stretch;
}

/* Left Side - Branding & Illustration */
.auth-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-branding {
    position: relative;
    z-index: 1;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.auth-branding .logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.auth-branding .logo span {
    color: rgba(255, 255, 255, 0.9);
}

.auth-branding .tagline {
    font-size: 1rem;
    opacity: 0.9;
}

.auth-illustration {
    position: relative;
    z-index: 1;
    text-align: left;
    width: 100%;
}

.auth-illustration i {
    font-size: 100px;
    margin-bottom: 25px;
    opacity: 0.95;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    width: 140px;
    height: 140px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.auth-illustration h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.auth-illustration p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 35px;
    line-height: 1.7;
    max-width: 450px;
}

.feature-list {
    list-style: none;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list li i {
    color: #10b981;
    font-size: 1.8rem;
    background: rgba(16, 185, 129, 0.15);
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Right Side - Form */
.auth-right {
    background: var(--light-color);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-color);
    font-size: 1rem;
}

/* Plan Selection */
.plan-selection {
    margin-bottom: 30px;
}

.selected-plan {
    background: var(--light-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-link:hover {
    color: #1d4ed8;
}

/* Form Styles */
.auth-form {
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.form-section h3 .optional {
    font-weight: 400;
    color: var(--text-color);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--text-color);
    opacity: 0.5;
}

.input-group input {
    padding-left: 45px;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.link:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.2rem;
}

.alert-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #0a0;
    border: 1px solid #cfc;
}

.alert-info {
    background: #eef;
    color: #00a;
    border: 1px solid #ccf;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--light-color);
}

.auth-footer p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.auth-footer p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer p a:hover {
    text-decoration: underline;
}

.auth-footer .links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.auth-footer .links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-footer .links a:hover {
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 40px 20px;
    }

    .auth-card {
        padding: 40px 30px;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        padding: 14px 30px;
        font-size: 1rem;
    }
}
