/*
 * Auth Premium Design System
 * Centralized styles for Login, Register, Recovery, and Confirmation.
 * 2026 - Chironte ERP
 */

@font-face {
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialiconsoutlined/v14/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUce.woff2) format('woff2');
    font-display: swap;
}

.material-icons {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    background-color: var(--color-blue-grey-50, #f0f2f5);
    color: #262626;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Card Structure */
.auth-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 4px;
    max-width: 900px;
    width: 95%;
    overflow: hidden;
    border: 1px solid var(--color-blue-grey-100);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.auth-brand {
    flex: 1;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid rgba(0, 0, 0, .05);
    text-align: center;
}

.auth-form-side {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    width: 180px;
    margin-bottom: 20px;
}

/* Text & Headers */
.auth-header {
    color: var(--color-blue-grey-800);
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.auth-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: block;
}

/* Inputs & Forms */
.auth-control {
    height: 42px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    width: 100%;
}

.auth-control:focus {
    border-color: var(--color-cyan-400);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
    outline: 0;
    text-decoration: none;
}

/* Buttons */
.auth-btn-primary {
    background-color: var(--color-cyan-700, #0097a7);
    border: none;
    color: #fff !important;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    margin-top: 20px;
    transition: all .2s;
    text-align: center;
    width: 100%;
    display: block;
}

.auth-btn-primary:hover {
    background-color: var(--color-cyan-800, #00838f) !important;
    box-shadow: 0 4px 10px rgba(0, 151, 167, 0.3);
    color: #fff !important;
    text-decoration: none;
}

.auth-btn-success {
    background-color: #28a745;
    border: none;
    color: #fff !important;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    margin-top: 20px;
    transition: background-color .2s;
    width: 100%;
    display: block;
    text-align: center;
}

.auth-btn-success:hover {
    background-color: #218838 !important;
    color: #fff !important;
    text-decoration: none;
}

/* Footer & Links */
.auth-footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
}

.auth-footer-links a {
    color: var(--color-cyan-700);
    text-decoration: none;
    font-weight: 600;
}

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

.auth-version {
    color: #adb5bd;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Success Box */
.auth-success-box {
    text-align: center;
    padding: 20px;
}

.auth-success-icon {
    font-size: 4rem !important;
    color: #28a745;
    margin-bottom: 20px;
}

/* Preloader (Loadbar) */
.auth-loadbar {
    position: relative;
    width: 100%;
    height: 3px;
    background-color: rgba(0,0,0,0.05);
    overflow: hidden;
    margin: 20px 0;
}

#preloader .auth-loadbar {
    margin: 0;
    height: 100%;
    background-color: transparent;
}

.auth-bar {
    position: absolute;
    left: -50%;
    height: 100%;
    width: 50%;
    background-color: var(--color-cyan-500, #00bcd4);
    animation: auth-loadings 1.5s infinite ease-in-out;
}

@keyframes auth-loadings {
    0% { left: -50%; width: 30%; }
    50% { left: 25%; width: 50%; }
    100% { left: 100%; width: 30%; }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        width: 100%;
        margin: 15px;
    }
    .auth-brand {
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, .05);
    }
    .auth-form-side {
        padding: 30px;
    }
}
