/**
 * Plomada Authentication Stylesheet
 * Login, forgot password, reset password pages
 */

/* ==================== RESET & BASE ==================== */
* {
    box-sizing: border-box;
}

body.auth-page {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 100vh;
    background: url('/images/landing_bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
}

/* ==================== AUTH CARD ==================== */
.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    -webkit-box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    -webkit-animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== LOGO ==================== */
.auth-card .logo-img-lg {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-card .logo-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    -webkit-object-fit: contain;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

/* ==================== HEADER ==================== */
.auth-card .text-center {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: -webkit-linear-gradient(135deg, #fff 0%, #818cf8 100%);
    background: linear-gradient(135deg, #fff 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card .subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
}

/* ==================== ALERTS ==================== */
.auth-card .alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.auth-card .alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-card .alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ==================== FORM ELEMENTS ==================== */
.auth-card .form-group {
    margin-bottom: 1.5rem;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
}

.auth-card .form-group input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-card .form-group input:not([type="checkbox"]):not([type="radio"]):hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.auth-card .form-group input:not([type="checkbox"]):not([type="radio"]):focus {
    outline: none;
    border-color: #818cf8;
    background: rgba(255, 255, 255, 0.12);
    -webkit-box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-card .form-group input:not([type="checkbox"]):not([type="radio"])::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-card .form-group input:not([type="checkbox"]):not([type="radio"])::-moz-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-card .form-group input:not([type="checkbox"]):not([type="radio"]):-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-card .form-group input:not([type="checkbox"]):not([type="radio"])::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== TEXT UTILITIES ==================== */
.auth-card .text-right {
    text-align: right;
}

.auth-card .mt-1 {
    margin-top: 0.5rem;
}

.auth-card .mt-4 {
    margin-top: 1.5rem;
}

.auth-card .pt-2 {
    padding-top: 1rem;
}

.auth-card .border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-card .action-link {
    color: #818cf8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.auth-card .action-link:hover {
    opacity: 0.8;
}

/* ==================== CAPTCHA ==================== */
.auth-card .captcha-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    -webkit-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.auth-card .captcha-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #818cf8;
    margin-bottom: 0.75rem;
    text-align: center;
}

.auth-card .captcha-hint {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ==================== BUTTON ==================== */
.auth-card .btn-primary {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-top: 1rem;
    background: #6366f1;
    color: white;
    -webkit-box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
    font-family: inherit;
}

.auth-card .btn-primary:hover {
    background: #818cf8;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.2);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.2);
}

/* ==================== FOOTER ==================== */
.auth-card .text-center.mt-4 {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-card .text-small {
    font-size: 0.85rem;
}

.auth-card .text-muted {
    color: #64748b;
}

/* ==================== VERSION INFO ==================== */
.auth-card .version-info {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ==================== ANIMATIONS ==================== */
@-webkit-keyframes slideUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

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

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

/* ==================== OVERRIDE MAIN.CSS ==================== */
.auth-page .main-wrapper {
    margin-left: 0 !important;
    padding: 0 !important;
}

.auth-page .sidebar {
    display: none !important;
}

.auth-page body {
    background-color: transparent !important;
}

.auth-page .logo {
    display: none !important;
}


body.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
}

/* ==================== AUTH CARD ==================== */
.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== AUTH HEADER ==================== */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card > .logo-img-lg {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-card > .text-center {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
}

/* ==================== FORM ELEMENTS ==================== */
.auth-card .form-group {
    margin-bottom: 1.5rem;
}

.auth-card .form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-card .form-group input:focus {
    outline: none;
    border-color: #818cf8;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
}

/* ==================== CAPTCHA STYLES ==================== */
.captcha-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #818cf8;
    margin-bottom: 0.75rem;
    text-align: center;
}

.captcha-hint {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 0.5rem;
}

.captcha-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.captcha-container input:focus {
    outline: none;
    border-color: #818cf8;
    background: rgba(255, 255, 255, 0.08);
}

/* ==================== BUTTONS ==================== */
.auth-card .btn-primary {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.auth-card .btn-primary:hover {
    background: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.2);
}

/* ==================== ALERTS ==================== */
.auth-card .alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.auth-card .alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-card .alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ==================== ACTION LINKS ==================== */
.auth-card .action-link {
    color: #818cf8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.auth-card .action-link:hover {
    opacity: 0.8;
}

/* ==================== FOOTER ==================== */
.auth-card .text-center.mt-4 {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-card .text-small {
    font-size: 0.85rem;
}

.auth-card .text-muted {
    color: #64748b;
}

/* ==================== VERSION INFO ==================== */
.auth-card .version-info {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==================== LOGO ==================== */
.logo-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-shadow {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

/* ==================== OVERRIDE MAIN.CSS FOR AUTH ==================== */
.auth-page .main-wrapper {
    margin-left: 0;
    padding: 0;
}

.auth-page .sidebar {
    display: none !important;
}

.auth-page body {
    background-color: transparent;
}

