/* Authentication Styles */

.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.auth-brand {
    background: linear-gradient(135deg, #39d353 0%, #2db848 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.brand-logo i {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.brand-logo h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-tagline {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.auth-form-container {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border: 1px solid;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-color: rgba(40, 167, 69, 0.3);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-color: rgba(220, 53, 69, 0.3);
}

.alert i {
    font-size: 16px;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-header h2 i {
    color: #39d353;
}

.form-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #39d353;
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #39d353;
    box-shadow: 0 0 0 3px rgba(57, 211, 83, 0.1);
    background: #fff;
}

.form-control::placeholder {
    color: #95a5a6;
}

/* Password Field */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #39d353;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #39d353;
    border-color: #39d353;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: #39d353;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(57, 211, 83, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #39d353 0%, #2db848 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(57, 211, 83, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 211, 83, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e1e8ed;
}

.form-footer p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
}

.register-link,
.login-link {
    color: #39d353;
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover,
.login-link:hover {
    text-decoration: underline;
}

/* Demo Info & Benefits */
.auth-demo,
.auth-benefits {
    margin-top: 24px;
    padding: 20px;
    background: rgba(57, 211, 83, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(57, 211, 83, 0.2);
}

.demo-info h4,
.benefits-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-info h4 i,
.benefits-info h4 i {
    color: #39d353;
}

.demo-account {
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.demo-account strong {
    color: #2c3e50;
}

.demo-account code {
    background: rgba(57, 211, 83, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #2c3e50;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2c3e50;
}

.benefits-list li i {
    color: #39d353;
    font-size: 14px;
    width: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 20px;
    }
    
    .auth-brand {
        padding: 40px 30px;
        text-align: center;
    }
    
    .brand-logo {
        flex-direction: column;
        gap: 8px;
    }
    
    .brand-logo i {
        font-size: 36px;
    }
    
    .brand-logo h1 {
        font-size: 32px;
    }
    
    .brand-tagline {
        font-size: 16px;
    }
    
    .auth-form-container {
        padding: 40px 30px;
    }
    
    .form-header h2 {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .auth-body {
        padding: 10px;
    }
    
    .auth-container {
        margin: 10px;
    }
    
    .auth-brand {
        padding: 30px 20px;
    }
    
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    animation: slideInUp 0.6s ease-out;
}

/* Footer */
.auth-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}