:root {
    --brand-gold: #C5A975;
    --brand-gold-dark: #b09462;
    --brand-gold-light: #dcd0b1;
    --text-dark: #333333;
    --text-muted: #888888;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --input-bg: #f5f6fa;
    --danger-red: #e74c3c;
    --border-radius: 0.25rem;
}

body {
    background-color: var(--brand-gold);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Auth Container (Mobile Size Focus) */
.auth-container {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 451px) {
    .auth-container {
        height: auto;
        min-height: 80vh;
        border-radius: var(--border-radius);
    }
}

/* Header Section */
.auth-header {
    margin-bottom: 2.5rem;
    margin-top: 1rem;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: var(--input-bg);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-gold);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(197, 169, 117, 0.15);
}

/* intl-tel-input overrides */
.iti {
    width: 100%;
}
.iti__flag-container {
    padding: 1px;
}
.iti__selected-flag {
    background-color: transparent !important;
    border-radius: 12px 0 0 12px;
    padding: 0 1rem;
}
.iti__country-list {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Button & Actions */
.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
}

.auth-submit-btn {
    background-color: var(--brand-gold);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 169, 117, 0.3);
}

.auth-submit-btn:hover {
    background-color: var(--brand-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 169, 117, 0.4);
}

.auth-submit-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-actions h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-footer a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--brand-gold);
}

.auth-footer .forgot-password {
    color: var(--text-muted);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-red);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* --- Global Border-Radius Override (Straight but slightly curved corners) --- */
.card,
.btn,
.form-control,
.form-select,
.input-group,
.input-group-text,
.alert,
.modal-content,
.dropdown-menu,
.toast,
.glass-card,
.bottom-nav,
.badge,
.rounded,
.rounded-sm,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl,
[class*="rounded-"]:not(.rounded-circle):not(.rounded-pill),
[style*="border-radius"]:not([style*="50%"]):not([style*="circle"]) {
  border-radius: 0.25rem !important;
}

/* Specific corner overrides */
[style*="border-top-left-radius"]:not([style*="50%"]):not([style*="circle"]),
[style*="border-top-right-radius"]:not([style*="50%"]):not([style*="circle"]),
[style*="border-bottom-left-radius"]:not([style*="50%"]):not([style*="circle"]),
[style*="border-bottom-right-radius"]:not([style*="50%"]):not([style*="circle"]) {
  border-radius: 0.25rem !important;
}
