/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #1E3A8A; /* Changed to Arylla Global's primary blue */
    color: #fff;
    line-height: 1.4;
}

body.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: linear-gradient(135deg, #1E3A8A 0%, #2B6CB0 100%); /* Gradient with blue shades */
    padding: 10px;
}

/* Container */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 12px;
}

/* Password Strength Meter */
.password_strength {
    margin: 8px 0;
    height: 5px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.password_strength_bar {
    height: 100%;
    width: 0%;
    background: #f44336;
    transition: all 0.3s ease;
}

.password_requirements {
    margin: 10px 0;
    font-size: 13px;
    color: #B0C4DE; /* Light blue for better contrast */
}

.password_requirements ul {
    padding-left: 20px;
    margin: 5px 0;
    list-style-type: none;
}

.password_requirements li {
    margin-bottom: 3px;
    position: relative;
}

.password_requirements li:before {
    content: "•";
    margin-right: 8px;
}

.password_requirements .valid {
    color: #FFD700; /* Gold for valid requirements */
}

.password_requirements .invalid {
    color: #B0C4DE; /* Light blue for invalid */
}

/* Date of Birth Field */
.dob-field input[type="date"] {
    padding: 12px;
    border: 1px solid #FFD700;
    border-radius: 4px;
    background: #2B6CB0; /* Slightly lighter blue */
    color: #fff;
}

/* Alert Messages */
.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.error {
    background-color: #FFF5F5;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.alert.success {
    background-color: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.alert.success a {
    color: #14532D;
    font-weight: bold;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #FFD700; /* Gold for headers */
    font-weight: bold;
    margin-bottom: 12px;
    font-size: calc(0.9rem + 0.4vw);
}

p, label, span, small {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

a {
    color: #FFD700; /* Gold for links */
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #FBBF24; /* Slightly darker gold on hover */
}

/* Forms */
.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 8px;
    background: #2B6CB0; /* Lighter blue for inputs */
    border: 1px solid #FFD700;
    border-radius: 3px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #FBBF24; /* Brighter gold on focus */
    box-shadow: 0 0 3px rgba(251, 191, 36, 0.3);
}

textarea {
    min-height: 70px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' view类型='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
}

/* Buttons */
.btn-gold {
    padding: 8px 16px;
    background-color: #FFD700; /* Gold button */
    color: #1E3A8A !important; /* Blue text for contrast */
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.85rem;
}

.btn-gold:hover {
    background-color: #FBBF24; /* Slightly darker gold on hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

/* Alerts */
.alert {
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
}

.error {
    background: rgba(255, 0, 0, 0.2);
    border-left: 2px solid #B91C1C;
    color: #FECACA;
}

.success {
    background: rgba(0, 255, 0, 0.2);
    border-left: 2px solid #15803D;
    color: #BBF7D0;
}

/* Auth Boxes */
.login-box,
.register-box,
.client-reg-box,
.success-box {
    width: 100%;
    max-width: 450px;
    margin: 5px auto 0;
    padding: 15px;
    background: #2B6CB0; /* Lighter blue for boxes */
    border-radius: 5px;
    border: 1px solid #FFD700;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
}

.register-box {
    max-width: 650px;
}

.form-section {
    margin-bottom: 15px;
}

.form-section h2 {
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 3px;
    border-bottom: 1px solid #4B5EAA; /* Darker blue for section borders */
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.full-width {
    grid-column: 1 / -1;
}

.terms-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
}

.terms-group input {
    width: auto;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.dashboard-card {
    background: #2B6CB0; /* Lighter blue for cards */
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #FFD700;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #4B5EAA; /* Darker blue for item borders */
}

.info-label {
    color: #FFD700; /* Gold for labels */
}

.referral-box {
    display: flex;
    gap: 6px;
    margin: 10px 0;
}

.referral-box input {
    flex: 1;
    padding: 6px;
    background: #2B6CB0;
    border: 1px solid #FFD700;
    color: #fff;
}

/* Success Page */
.success-box {
    text-align: center;
}

.success-icon {
    width: 50px;
    height: 50px;
    background-color: #FFD700; /* Gold icon background */
    color: #1E3A8A; /* Blue icon text */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

.success-details {
    margin: 12px 0;
    text-align: left;
}

.success-details p {
    margin-bottom: 6px;
}

.email-warning {
    color: #FFD700;
    background: rgba(251, 191, 36, 0.1);
    padding: 6px;
    border-radius: 3px;
    border-left: 2px solid #FFD700;
}

.success-actions {
    margin: 15px 0;
}

.success-support {
    margin-top: 15px;
    color: #B0C4DE; /* Light blue for support text */
}

/* Footer Links */
.login-footer,
.register-footer {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #4B5EAA; /* Darker blue for footer border */
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 3px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    body.auth-page {
        padding: 5px;
    }
    
    .login-box,
    .register-box,
    .client-reg-box,
    .success-box {
        padding: 12px;
        margin-top: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}