/**
 * AppPDV - Auth Pages
 * Design: Refined Modern com identidade Verde Esmeralda
 */

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

/* ========================================
   BASE
   ======================================== */
.bg-one-auth {
    background: #F8FAFC;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-wrapper *, .auth-wrapper *::before, .auth-wrapper *::after {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

/* ========================================
   LEFT PANEL - Brand / Hero
   ======================================== */
.auth-wrapper-left {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, #065F46 0%, #047857 30%, #10B981 60%, #059669 100%);
}

/* Mesh gradient overlay */
.auth-wrapper-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(110, 231, 183, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(52, 211, 153, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(6, 95, 70, 0.3) 0%, transparent 60%);
    animation: meshPulse 10s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes meshPulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; transform: scale(1.03); }
}

/* Decorative circles */
.auth-left-cont {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 48px 40px;
    max-width: 520px;
    animation: fadeSlideUp 0.8s ease-out 0.15s both;
}

.auth-decor {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
    pointer-events: none;
}

.auth-decor--1 {
    width: 360px;
    height: 360px;
    top: -80px;
    right: -60px;
    animation: floatSlow 8s ease-in-out infinite;
}

.auth-decor--2 {
    width: 200px;
    height: 200px;
    bottom: 60px;
    left: -40px;
    border-color: rgba(255, 255, 255, 0.05);
    animation: floatSlow 6s ease-in-out infinite reverse;
}

.auth-decor--3 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 15%;
    background: rgba(255, 255, 255, 0.03);
    animation: floatSlow 7s ease-in-out infinite 1s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(18px) rotate(3deg); }
}

/* Logo */
.auth-left-cont img {
    max-width: 200px;
    height: 60px;
    margin-bottom: 36px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.15));
}

/* Tagline */
.auth-left-cont .title {
    font-family: "Outfit", sans-serif;
    font-size: 44px;
    font-weight: 300;
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 40px;
}

.auth-left-cont .title span,
.auth-left-cont .title .text-primary {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 300;
    display: block;
}

.auth-left-cont .title strong,
.auth-left-cont .title .color-EC255A {
    color: #fff !important;
    font-weight: 700;
}

/* Feature list */
.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 400;
    padding: 10px 0;
    letter-spacing: 0.1px;
}

.auth-features li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-features .feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

/* ========================================
   RIGHT PANEL - Form
   ======================================== */
.auth-wrapper-right {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 48px 32px;
    position: relative;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.04);
}

.auth-wrapper-right .auth-wrapper-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeSlideUp 0.6s ease-out;
}

/* Version badge */
.__login-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.4px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.06);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

/* ========================================
   AUTH HEADER
   ======================================== */
.auth-header {
    margin-bottom: 4px;
}

.auth-header .title {
    font-family: "Outfit", sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.auth-header div,
.auth-header p {
    font-size: 15px;
    color: #64748B;
    font-weight: 400;
    line-height: 1.5;
}

.auth-header a {
    color: #10B981;
    font-weight: 600;
    text-decoration: none;
}

.auth-header a:hover {
    color: #047857;
}

.auth-header .badge {
    display: none;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.auth-wrapper-right .input-label {
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.15px;
    margin-bottom: 6px;
}

.auth-wrapper-right .form-control {
    height: 46px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 16px;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1E293B;
    background: #F8FAFC;
    transition: all 0.2s ease;
}

.auth-wrapper-right .form-control::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.auth-wrapper-right .form-control:focus {
    border-color: #10B981;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

.auth-wrapper-right .form-group {
    margin-bottom: 18px;
}

/* Input group (password) */
.auth-wrapper-right .input-group .form-control {
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.auth-wrapper-right .input-group-append .input-group-text {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 14px;
}

.auth-wrapper-right .input-group:focus-within .form-control {
    border-color: #10B981;
    box-shadow: none;
    background: #fff;
}

.auth-wrapper-right .input-group:focus-within .input-group-text {
    border-color: #10B981;
    background: #fff;
}

/* Validation errors */
.auth-wrapper-right .is-invalid {
    border-color: #EF4444 !important;
}

.auth-wrapper-right .invalid-feedback {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
}

/* Select */
.auth-wrapper-right select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ========================================
   BUTTONS
   ======================================== */
.auth-wrapper-right .btn-primary {
    height: 46px;
    border-radius: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}

.auth-wrapper-right .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #065F46 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.auth-wrapper-right .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

/* ========================================
   SECTION TITLES (register)
   ======================================== */
.section-title {
    font-family: "Outfit", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 24px 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #ECFDF5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: linear-gradient(to bottom, #10B981, #047857);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ========================================
   LINKS & TEXT
   ======================================== */
.auth-wrapper-right .auth-link-text {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #64748B;
}

.auth-wrapper-right .auth-link-text a,
.auth-wrapper-right p a {
    color: #10B981;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-wrapper-right .auth-link-text a:hover,
.auth-wrapper-right p a:hover {
    color: #047857;
    text-decoration: underline;
}

/* ========================================
   DEMO CREDENTIALS
   ======================================== */
.auto-fill-data-copy {
    padding: 14px 16px;
    background: #F8FAFC;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    margin-top: 20px;
    font-size: 13px;
}

.auto-fill-data-copy .btn--primary,
.auto-fill-data-copy .action-btn {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   ALERTS
   ======================================== */
.auth-wrapper-right .alert {
    border-radius: 10px;
    font-size: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.auth-wrapper-right .alert-danger {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #B91C1C;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1400px) {
    .auth-left-cont .title {
        font-size: 36px;
    }
    .auth-wrapper-right {
        max-width: 540px;
    }
}

@media (max-width: 1200px) {
    .auth-left-cont .title {
        font-size: 32px;
    }
    .auth-wrapper-right {
        max-width: 480px;
    }
    .auth-left-cont {
        padding: 32px;
    }
}

@media (max-width: 991px) {
    .auth-wrapper-left {
        display: none;
    }
    .auth-wrapper-right {
        max-width: 100%;
        padding: 48px 24px;
    }
    .auth-wrapper-right .auth-wrapper-form {
        max-width: 420px;
    }
}

@media (max-width: 576px) {
    .auth-wrapper-right {
        padding: 32px 16px;
    }
    .auth-header .title {
        font-size: 26px;
    }
    .__login-badge {
        top: 12px;
        right: 12px;
        font-size: 10px;
    }
    .auth-wrapper-right .form-control {
        height: 44px;
        font-size: 14px;
    }
    .auth-wrapper-right .btn-primary {
        height: 44px;
    }
}

/* ========================================
   LEGACY COMPAT
   ======================================== */
.color-EC255A {
    color: #10B981 !important;
}

@media (max-width: 768px) {
    .hide-div-auth { display: none; }
    .show-div-auth { display: block; }
}

@media (min-width: 769px) {
    .show-div-auth { display: none; }
}
