/* File: auth_style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #673de6;
    --primary-color-dark: #522bb8;
    --bg-color: #f0f2f5;
    --container-bg: #ffffff;
    --border-color: #e4e6eb;
    --text-color: #1c1e21;
    --meta-text-color: #65676b;
    --error-color: #dc3545;
    --success-color: #198754;
    --link-color: #0056b3;
    --border-radius-md: 8px;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.auth-page {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.auth-container {
    background-color: var(--container-bg);
    padding: 30px 40px; /* Increased padding */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 450px; /* Slightly wider */
    text-align: center;
}

.auth-container .logo-container {
    margin-bottom: 25px;
}

.auth-container .logo {
    max-width: 150px; /* Adjust as needed */
    height: auto;
    margin-bottom: 10px;
}

.auth-container h1 {
    font-size: 1.75rem; /* Larger title */
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}
.auth-container p.subtitle {
    font-size: 0.95rem;
    color: var(--meta-text-color);
    margin-bottom: 25px;
}


.auth-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #333;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px; /* Slightly less rounded */
    box-sizing: border-box;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.15);
}

.auth-form button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px; /* Space above button */
}

.auth-form button[type="submit"]:hover {
    background-color: var(--primary-color-dark);
}
.auth-form button[type="submit"]:active {
    transform: scale(0.99);
}
.auth-form button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.auth-links {
    margin-top: 25px;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

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

.status-message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none; /* Hidden by default */
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Profile Picture Selection */
.profile-picture-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: #f9f9f9;
}

.profile-picture-option {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 50%; /* Circular images */
    transition: border-color 0.2s ease, transform 0.2s ease;
    overflow: hidden; /* Ensure image stays within circle */
    width: 70px; /* Size of the avatar */
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e9ecef;
}

.profile-picture-option img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the circle */
    border-radius: 50%;
}

.profile-picture-option:hover {
    transform: scale(1.05);
}

.profile-picture-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(103, 61, 230, 0.3);
    transform: scale(1.1);
}

.profile-picture-option input[type="radio"] {
    display: none; /* Hide the actual radio button */
}

/* Loading spinner for profile pictures */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px; /* Same height as a row of avatars */
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-container {
        padding: 25px 20px;
    }
    .auth-container h1 {
        font-size: 1.5rem;
    }
    .auth-form input[type="text"],
    .auth-form input[type="password"],
    .auth-form input[type="tel"],
    .auth-form button[type="submit"] {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .profile-picture-option {
        width: 60px;
        height: 60px;
    }
}
