@import url('../global.css');
@import url('../core/typography.css');
/* =========================================
   RESET
========================================= */

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

/* =========================================
   BASE
========================================= */


html,
body {
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.titles span{
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-align: center;
}


/* =========================================
   LAYOUT
========================================= */

.login-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
}

.login-box {
    width: 100%;
    flex: 1;
    background: white;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================================
   FORM
========================================= */

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;

    margin-bottom: 5px;

    color: #555;
}

.form-group input {
    width: 100%;

    padding: 16px;

    border: 1px solid #ddd;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;

    border-color: #3312BE;

    box-shadow:
        0 0 0 3px rgba(51,18,190,0.08);
}

/* =========================================
   PRIMARY BUTTON
========================================= */

.login-btn {
    width: 100%;

    padding: 16px;

    background: #3312BE;
    color: white;

    border: none;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.2s ease;
}

.login-btn:hover {
    background: #291091;

    transform: translateY(-1px);
}

/* =========================================
   SECONDARY BUTTONS
========================================= */

.secondary-buttons {
    display: flex;;
    margin-top: 5px;
    gap: 5px;
}

.reset-btn,
.support-btn {

    background: var(--buttons-secondary);

    color: var(--color-text-secondary);

    border: none;

    padding: 10px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.2s ease;
}

.reset-btn:hover,
.support-btn:hover {
    background: var(--buttons-secondary);

    transform: translateY(-1px);
}

/* =========================================
   SIGNUP LINK
========================================= */

.signup-confirm-msg {
    font-size:0.82rem; 
    margin-top:6px; 
    min-height:1em;
} 

.signup-link {
    text-align: center;

    margin-top: 5px;

    color: #666;
}

.signup-link a {
    color: #667eea;

    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* =========================================
   TABS
========================================= */

.tab-toggle {
    display: flex;

    border-bottom: 1px solid #e2e8f0;

    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;

    padding: 12px;

    background: none;

    border: none;
    border-bottom: 2px solid transparent;

    color: #718096;

    cursor: pointer;

    margin-bottom: -1px;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.tab-btn.active {
    color: #2d3748;

    border-bottom-color: #3312BE;
}

.tab-btn:hover:not(.active) {
    color: #3312BE;
}

/* =========================================
   AUTH SECTIONS
========================================= */

.auth-section {
    display: none;
}

.auth-section.active {
    display: block;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .login-container {
        max-width: 100%;
    }

    .login-box {
        padding: 36px 28px;
    }

    .secondary-buttons {
        flex-direction: column;
    }
}

/* =========================================
   MODAL
========================================= */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-box h3 {
    margin-bottom: 8px;
    color: #2d3748;
}

.modal-box p {
    color: #718096;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #2d3748;
}

/* =========================================
   FORM MESSAGES
========================================= */

.form-message {
    margin-top: 12px;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.form-message.error  { color: #e53e3e; }
.form-message.success { color: #38a169; }
.form-message.info   { color: #3182ce; }