/* auth/assets/css/auth.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #4a4a4a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
}

/* Split Layout */
.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 10%;
    background-color: #ffffff;
}

.auth-right {
    flex: 1;
    background-color: #fafafa;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.auth-right h2 {
    font-size: 2rem;
    color: #222222;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.auth-right p {
    font-size: 1rem;
    color: #666666;
    max-width: 400px;
}

/* Form Container */
.auth-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222222;
    letter-spacing: 1px;
    margin-bottom: 40px;
    display: inline-block;
    text-decoration: none;
}

.auth-container h1 {
    font-size: 2rem;
    color: #222222;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-container .subtitle {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 32px;
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

/* THE STRONG INPUT STYLING */
.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: #222222;
    background-color: #ffffff;
    border: 1px solid #333333; /* Solid border */
    outline: none;
    transition: border-color 0.2s ease;
    
    /* Kill all browser default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Kill the browser autofill yellow/blue background */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover, 
.form-control:-webkit-autofill:focus, 
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #222222 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-control:focus {
    border-color: #111111;
}

.form-control::placeholder {
    color: #a0a0a0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.btn-primary {
    background-color: #333333;
    color: #ffffff;
    border-color: #333333;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #111111;
}

.btn-primary:disabled {
    background-color: #999999;
    border-color: #999999;
    cursor: not-allowed;
}

/* Links */
.auth-links {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.auth-links a {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
}

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

/* Error/Success Messages (Fixed to hide when empty) */
.message {
    padding: 12px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none; /* Hidden by default */
}

/* Only show the box if it has the "show" class AND content */
.message.show {
    display: block;
}

.message.show.error {
    background-color: #fff0f0;
    color: #cc0000;
    border: 1px solid #ffcccc;
}

.message.show.success {
    background-color: #f0fff4;
    color: #008000;
    border: 1px solid #c6f6d5;
}

/* Loading Spinner for Buttons */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-primary:disabled {
    background-color: #555555;
    cursor: not-allowed;
}
/* Responsive */
@media (max-width: 900px) {
    body { flex-direction: column; }
    .auth-right { display: none; }
    .auth-left {
        padding: 40px 24px;
        justify-content: flex-start;
        padding-top: 60px;
    }
}