.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

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

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #c0392b;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1 1 0;
    margin-bottom: 0;
}

.form-row .form-group input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 0;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:invalid {
    border-color: #e74c3c;
}

.form-group input:valid {
    border-color: #27ae60;
}

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

.password-input input[type="password"],
.password-input input[type="text"] {
    width: 100%;
    padding-right: 38px;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.password-icon {
    font-size: 1.2rem;
}

.password-strength {
    font-size: 0.95rem;
    margin-top: 5px;
    min-height: 20px;
    color: #888;
    font-style: italic;
    display: block;
    transition: color 0.2s;
}

.password-strength:empty {
    display: none;
}

.password-match {
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 18px;
}

.password-match:empty {
    display: none;
}

.form-help {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 2px;
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 3px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-options {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    margin: 10px 0 0 0;
    flex-wrap: nowrap;
    width: 100%;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .form-options {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}

.forgot-link {
    font-size: 0.95rem;
    color: #667eea;
    text-decoration: none;
    margin-left: 8px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.auth-btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: 2px solid #e1e8ed;
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #667eea;
    color: #667eea;
}

.btn-icon {
    font-size: 1.2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #666;
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e8ed;
}

.auth-divider span {
    padding: 0 15px;
    
}

.auth-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-links p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.auth-back {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #333;
}

.back-icon {
    font-size: 1.1rem;
}

.demo-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.demo-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.demo-info p {
    margin: 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.demo-info strong {
    color: #333;
}

.form-row .form-group:last-child input {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.terms-group {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 0px;
    display: flex;
    align-items: flex-start;
    min-height: 40px;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    width: 100%;
}
.terms-text {
    margin-left: 8px;
    color: #444;
    font-size: 0.97rem;
    line-height: 1.5;
    word-break: break-word;
}
.terms-link {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.terms-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .terms-group {
        padding: 10px 8px;
        font-size: 0.93rem;
    }
    .terms-text {
        font-size: 0.93rem;
    }
}

@media (max-width: 600px) {
    .auth-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .auth-card {
        padding: 30px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .auth-header h1 {
        font-size: 1.7rem;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 400px) {
    .auth-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .auth-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}
