/* static/css/auth.css - Jollof-Naija Authentication Styles */

/* Remove default container padding */
body .container {
    padding: 0;
    max-width: 100%;
}

/* Main Auth Wrapper */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 2rem 1rem;
}

.auth-container {
    display: flex;
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

/* Left Panel - Welcome Section (Solid Yellow Background) */
.auth-left-panel {
    flex: 1;
    background: #ffcc00; /* Solid base color - NO GRADIENT */
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
}

.welcome-content {
    max-width: 100%;
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000; /* High contrast text */
}

.welcome-content > p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.6rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
}

.feature-list li:before {
    content: "✓";
    font-weight: bold;
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Right Panel - Form Section (White Background) */
.auth-right-panel {
    flex: 1;
    background: white;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form {
    width: 100%;
    max-width: 100%;
}

.auth-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.subtitle {
    color: #666;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

/* Social Login Buttons */
.social-login {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    border-color: #ffcc00;
    background: #fffef0;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: #999;
    font-size: 0.9rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px; /* Rounded corners */
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #ffcc00; /* Base color on focus */
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Form Options (Remember me, Forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ffcc00;
}

.forgot-link {
    color: #ffcc00;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #e6b800;
    text-decoration: underline;
}

/* Submit Button (Using Base Color) */
.btn-auth {
    width: 100%;
    padding: 0.9rem;
    background: #ffcc00; /* Base color for interactive elements */
    border: none;
    border-radius: 8px; /* Rounded corners */
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-auth:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.btn-auth:active {
    transform: translateY(0);
}

/* Terms Text */
.terms-text {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
}

.terms-text a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Switch Auth Link */
.switch-auth {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.switch-auth a {
    color: #ffcc00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.switch-auth a:hover {
    color: #e6b800;
    text-decoration: underline;
}

/* Error Messages */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.errorlist li {
    color: #dc3545;
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* Hide Django Help Text */
.helptext {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        min-height: auto;
    }

    .auth-left-panel {
        padding: 2rem 1.5rem;
    }

    .welcome-content h1 {
        font-size: 2rem;
    }

    .auth-right-panel {
        padding: 2rem 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }

    .social-login {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 1rem 0.5rem;
    }

    .auth-left-panel,
    .auth-right-panel {
        padding: 1.5rem 1.25rem;
    }

    .welcome-content h1 {
        font-size: 1.75rem;
    }

    .auth-form h2 {
        font-size: 1.35rem;
    }

    .form-group input {
        padding: 0.75rem 0.85rem;
        font-size: 0.95rem;
    }
}