@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Rajdhani:wght@600;700&display=swap');

/* ============================================
   AUTH PAGES STYLES
   ============================================ */

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 221, 89, 0.22) 0%, rgba(255, 221, 89, 0) 34%),
        radial-gradient(circle at 88% 10%, rgba(11, 110, 199, 0.2) 0%, rgba(11, 110, 199, 0) 30%),
        linear-gradient(145deg, #f4fff3 0%, #eef7ff 56%, #ffffff 100%);
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(20, 64, 38, 0.16);
    max-width: 1000px;
    width: 100%;
}

/* ============================================
   AUTH LEFT SIDE
   ============================================ */
.auth-left {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 221, 89, 0.34) 0%, rgba(255, 221, 89, 0) 42%),
        radial-gradient(circle at 86% 16%, rgba(11, 110, 199, 0.32) 0%, rgba(11, 110, 199, 0) 38%),
        linear-gradient(135deg, #0f7b31 0%, #1e9f44 46%, #1464b3 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.12) 0,
        rgba(255, 255, 255, 0.12) 2px,
        transparent 2px,
        transparent 120px
    );
    opacity: 0.35;
    pointer-events: none;
}

.auth-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.auth-info {
    position: relative;
    z-index: 1;
}

.auth-info h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    letter-spacing: 0.4px;
    margin-bottom: 20px;
    font-weight: 700;
}

.auth-info p {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.95;
}

.features-list {
    list-style: none;
    text-align: left;
}

.features-list li {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li:before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ffd23f;
    color: #0f5f26;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 20px;
}

/* ============================================
   AUTH RIGHT SIDE
   ============================================ */
.auth-right {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-container h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    color: #115f2b;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-subtitle {
    color: #4f6984;
    margin-bottom: 30px;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
}

/* ============================================
   USER TYPE SELECTOR
   ============================================ */
.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.user-type-option {
    cursor: pointer;
}

.user-type-option input[type="radio"] {
    display: none;
}

.option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    background-color: white;
}

.option-box i {
    font-size: 32px;
    color: #1464b3;
    margin-bottom: 10px;
}

.option-box strong {
    font-size: 14px;
    color: var(--dark-gray);
    display: block;
    margin-bottom: 5px;
}

.option-box small {
    font-size: 12px;
    color: #888;
}

.user-type-option input[type="radio"]:checked + .option-box {
    border-color: #1e9f44;
    background-color: rgba(30, 159, 68, 0.12);
    box-shadow: 0 0 0 3px rgba(30, 159, 68, 0.12);
}

/* ============================================
   AUTH FORM
   ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e9f44;
    box-shadow: 0 0 0 3px rgba(30, 159, 68, 0.14);
}

.form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 13px;
    cursor: pointer;
}

.form-group.checkbox a {
    color: #1464b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-group.checkbox a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 12px;
    color: #1464b3;
    text-decoration: none;
    margin-top: 5px;
    transition: color 0.3s ease;
    display: inline-block;
}

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

.owner-only {
    background: linear-gradient(145deg, #f6fff6 0%, #eff7ff 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #1e9f44;
}

.owner-only .form-group {
    gap: 8px;
}

.owner-only label {
    font-size: 13px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}

.btn-social {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-social:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-social.google:hover {
    background-color: rgba(66, 133, 244, 0.05);
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    color: #ccc;
}

.divider:before,
.divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.divider span {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================================
   AUTH FOOTER
   ============================================ */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-spinner p {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

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

/* ============================================
   VERIFICATION PAGE
   ============================================ */
.verification-container {
    text-align: center;
    padding: 60px 40px;
}

.verify-state {
    animation: fadeIn 0.5s ease-in;
}

.verify-icon {
    font-size: 80px;
    margin-bottom: 30px;
    display: inline-block;
}

.verify-icon.verifying {
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.verify-icon.success {
    color: var(--success-color);
}

.verify-icon.error {
    color: var(--danger-color);
}

.verify-state h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.verify-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.spinner-small {
    display: inline-block;
    border: 3px solid rgba(30, 159, 68, 0.25);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--dark-gray);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 40px 25px;
    }

    .auth-form-container h1 {
        font-size: 24px;
    }

    .user-type-selector {
        grid-template-columns: 1fr;
    }

    .option-box {
        flex-direction: row;
        gap: 15px;
        text-align: left;
    }

    .option-box i {
        font-size: 28px;
        margin-bottom: 0;
    }

    .verification-container {
        padding: 40px 20px;
    }

    .verify-icon {
        font-size: 60px;
    }

    .verify-state h2 {
        font-size: 22px;
    }

    .error-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 30px 15px;
    }

    .auth-form-container h1 {
        font-size: 20px;
    }

    .form-subtitle {
        font-size: 12px;
    }

    .user-type-selector {
        gap: 10px;
    }

    .option-box {
        padding: 15px;
        font-size: 12px;
    }

    .option-box i {
        font-size: 24px;
    }

    .verify-icon {
        font-size: 50px;
    }
}
