@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f4f4f4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    padding: 20px 10px;
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-container img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.brand-name {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0;
}

.auth-title {
    color: #666;
    font-size: 18px;
    margin-bottom: 10px;
}

.auth-form {
    padding: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #4A90E2;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #357ABD;
}

.auth-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #4A90E2;
    text-decoration: none;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.error-container {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

.error-message {
    color: #dc3545;
    background-color: #ffe6e6;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
}

.error-message::before {
    content: "⚠️";
    margin-right: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success message styling */
.success-message {
    color: #28a745;
    background-color: #e8f5e9;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
}

.success-message::before {
    content: "✅";
    margin-right: 8px;
}

.password-field {
    position: relative;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

.password-toggle:focus {
    outline: none;
}

.password-toggle i {
    font-size: 20px;
}

.password-toggle:hover {
    color: #4A90E2;
}

/* Adjust the password input padding to accommodate the toggle button */
.password-input-group input[type="password"],
.password-input-group input[type="text"] {
    padding-right: 40px;
} 
/* Add these to your existing CSS */
.verification-container {
    padding: 20px;
}

.verification-info {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.verification-form {
    margin-bottom: 20px;
}

.resend-code {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.resend-code p {
    margin-bottom: 10px;
    color: #666;
}

.resend-btn {
    background: none;
    border: none;
    color: #4A90E2;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px 10px;
}

.resend-btn:hover {
    color: #357ABD;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}
.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.verification-notice {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}

.referral-info {
    background: linear-gradient(45deg, #4a90e2, #67b26f);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.bonus-info {
    font-weight: bold;
    margin-top: 5px;
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.referral-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.verification-info {
    text-align: center;
    margin-bottom: 20px;
}

.email-display {
    font-weight: bold;
    color: #4f46e5;
    margin-top: 5px;
}

.link-btn {
    background: none;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
}

.link-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.cancel-link {
    color: #ef4444;
    text-decoration: none;
    font-size: 14px;
    margin-left: 20px;
}

.cancel-link:hover {
    text-decoration: underline;
}