/* 1. VARIABLES & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-red: #e31837;
    --primary-red-hover: #c4122d;
    --primary-red-glow: rgba(227, 24, 55, 0.1);
    --bg-light-grey: #f3f3f4;
    --text-dark: #0d0c22;
    --text-muted: #6e6d7a;
    --border-light: #dbdbdb;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition-base: all 0.2s ease-in-out;
}

/* 2. LAYOUT WRAPPERS */
.auth-form-wrapper {
    font-family: 'Inter', sans-serif;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    color: var(--text-dark);
}

.auth-form-wrapper h1 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 12px !important;
}

.auth-form-wrapper p {
    font-size: 16px;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 3. INPUT STYLING */
.form-control-custom {
    display: block;
    width: 100%;
    height: 54px;
    padding: 10px 18px;
    font-size: 15px;
    background-color: var(--bg-light-grey);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    color: var(--text-dark);
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-red-glow);
    outline: none;
}

/* 4. BUTTONS */
.btn-auth-submit {
    width: 100%;
    height: 54px;
    background-color: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-auth-submit:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-auth-submit:active {
    transform: scale(0.98);
}

/* 5. COMPONENTS (Checkbox, Row, Footer) */
.remember-forgot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -5px;
    margin-bottom: 8px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-red);
    cursor: pointer;
}

.checkbox-container label {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 0;
}

.forgot-password-link {
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.error-feedback {
    color: var(--primary-red);
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.auth-footer, .login-footer {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-light-grey);
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
}

.auth-footer a, .login-footer a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover, .login-footer a:hover {
    text-decoration: underline;
}

/* 6. PROFILE SPECIFIC */
.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto 20px auto;
    display: block;
}

.profile-picture-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-light-grey);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--text-muted);
}
.profile-picture-placeholder i {
    font-size: 36px; /* Size of the user icon */
    line-height: 1;
}
.profile-info-card {
    background-color: var(--bg-light-grey);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.05);
}

.profile-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e2e3;
    padding-bottom: 12px;
}

.profile-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.profile-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 800;
    display: block;
}

.profile-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    margin-top: 4px;
}

.logout-btn-link {
    background: none;
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-base);
}

.profile-nav-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 25px; 
}

.profile-value:empty::before, 
.profile-value:contains("Not provided") {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

/* --- Custom Modal Styling --- */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(13, 12, 34, 0.85); /* Deep dark tint */
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-icon {
    font-size: 48px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}
.modal-actions form {
    flex: 1;
    display: flex;
}

.btn-cancel, 
.btn-confirm {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap; 
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-confirm {
    width: 100%; 
    background: var(--primary-red);
    color: #ffffff;
}