/* auth.css - Dedicated for DO IT INFOSYSTEM Login & Registration */

:root {
    --primary: #a43794;
    --primary-soft: rgba(164, 55, 148, 0.1);
    --primary-dark: #8e2e7f;
    --bg-gradient: linear-gradient(135deg, #fdf2fb 0%, #ffffff 100%);
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --shadow: 0 20px 50px rgba(164, 55, 148, 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-gradient);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(164, 55, 148, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header img {
    height: 65px;
    margin-bottom: 15px;
}

.auth-header h2 {
    color: var(--text-dark);
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-soft);
    background: #fff;
}

.auth-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(164, 55, 148, 0.2);
    margin-top: 10px;
}

.auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(164, 55, 148, 0.3);
}

.switch-mode {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.switch-mode a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
}

.switch-mode a:hover {
    text-decoration: underline;
}

.error-msg {
    color: #d9534f;
    background: #fdf2f2;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.85rem;
    border: 1px solid rgba(217, 83, 79, 0.1);
}
.form-select {
        width: 100%;
        padding: 12px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 1rem;
        font-family: 'Plus Jakarta Sans', sans-serif;
        background-color: #ffffff;
        color: #1e293b;
        appearance: none; /* Removes default browser arrow */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        cursor: pointer;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-select:focus {
        outline: none;
        border-color: #a43794;
        box-shadow: 0 0 0 3px rgba(164, 55, 148, 0.1);
    }
    /* Full-screen loading overlay */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #a43794; /* Your brand color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 45px; /* Space for the icon */
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: #a43794; /* Your brand color */
}