/* ============================================
   LOGIN DOOR — Hero + Sliding Panel
   ============================================ */
.login-page-v2 {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

.login-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    overflow: hidden;
}

/* Blobs */
.hero-blobs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    will-change: transform;
}
.hero-blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--brand, #96a63f) 0%, transparent 70%);
    top: -200px; left: -100px;
    animation: heroBlob1 22s ease-in-out infinite;
}
.hero-blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #6a7a29 0%, transparent 70%);
    bottom: -150px; right: -100px;
    animation: heroBlob2 28s ease-in-out infinite;
}
.hero-blob-3 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, #b5c455 0%, transparent 70%);
    top: 30%; left: 45%;
    opacity: 0.3;
    animation: heroBlob3 20s ease-in-out infinite;
}
@keyframes heroBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 80px) scale(1.15); }
    66% { transform: translate(-60px, 120px) scale(0.95); }
}
@keyframes heroBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-120px, -80px) scale(1.1); }
}
@keyframes heroBlob3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, -100px); }
}

/* Grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}

/* Center content */
.hero-center {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s;
}

.login-hero.door-open .hero-center {
    transform: translateX(-15%) scale(0.95);
    opacity: 0.4;
    pointer-events: none;
}

.hero-logo {
    margin-bottom: 26px;
    animation: heroFadeIn 0.8s ease-out;
}
.hero-logo-img {
    max-height: 110px;
    width: auto;
    filter: brightness(0) invert(1);
}
.hero-logo-fallback {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #fff;
    display: flex;
    gap: 0;
}
.hero-logo-fallback span:last-child { color: var(--brand, #96a63f); }

.hero-tagline {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--brand, #96a63f);
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: heroFadeIn 0.8s ease-out 0.1s backwards;
}

.hero-title {
    font-size: 78px;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 0 28px 0;
    color: #fff;
    animation: heroFadeIn 0.8s ease-out 0.2s backwards;
}
.hero-title span {
    color: var(--brand, #96a63f);
}
.hero-title em {
    font-style: normal;
    font-size: 0.5em;
    vertical-align: super;
    color: #fff;
    background: var(--brand, #96a63f);
    padding: 4px 14px;
    border-radius: 12px;
    margin-left: 8px;
    letter-spacing: 0;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 17px;
    color: #999;
    margin: 0 0 50px 0;
    max-width: 560px;
    line-height: 1.6;
    animation: heroFadeIn 0.8s ease-out 0.3s backwards;
}

.hero-enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 44px;
    background: linear-gradient(135deg, var(--brand, var(--brand, #96a63f)) 0%, var(--brand-hover, #7f8f34) 100%);
    color: #fff;
    border: 0;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(150,166,63,0.4);
    animation: heroFadeIn 0.8s ease-out 0.4s backwards;
}
.hero-enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(150,166,63,0.55);
}
.hero-enter-btn:active {
    transform: translateY(0);
}
.hero-enter-btn svg {
    transition: transform 0.25s;
}
.hero-enter-btn:hover svg {
    transform: translateX(4px);
}

.hero-version {
    margin-top: 40px;
    font-size: 11px;
    color: #444;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: heroFadeIn 0.8s ease-out 0.5s backwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   DOOR PANEL (sliding από δεξιά)
   ============================================ */
.door-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 90vw;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -30px 0 80px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    overflow-y: auto;
}
.login-hero.door-open .door-panel {
    transform: translateX(0);
}

.door-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(150,166,63,0.4), transparent);
    pointer-events: none;
}

.door-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.door-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: rotate(90deg);
}

.door-form-wrap {
    width: 100%;
    max-width: 380px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
}
.login-hero.door-open .door-form-wrap {
    opacity: 1;
    transform: translateX(0);
}

.door-header {
    margin-bottom: 36px;
}
.door-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}
.door-header p {
    margin: 0;
    color: rgba(255,255,255,0.55);
    font-size: 15px;
}

/* Form */
.door-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-field label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 14px;
    color: rgba(255,255,255,0.4);
    pointer-events: none;
    transition: color 0.15s;
}
.input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.15s;
    box-sizing: border-box;
}
.input-wrap input::placeholder {
    color: rgba(255,255,255,0.3);
}
.input-wrap input:hover {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.07);
}
.input-wrap input:focus {
    outline: none;
    border-color: var(--brand, #96a63f);
    background: rgba(150,166,63,0.08);
    box-shadow: 0 0 0 4px rgba(150,166,63,0.15);
}
.input-wrap:focus-within .input-icon {
    color: var(--brand, #96a63f);
}

.toggle-pw {
    position: absolute;
    right: 12px;
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.toggle-pw:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: -4px;
}
.checkbox-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    user-select: none;
}
.checkbox-v2 input { display: none; }
.checkbox-v2-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.checkbox-v2 input:checked + .checkbox-v2-box {
    background: var(--brand, #96a63f);
    border-color: var(--brand, #96a63f);
}
.checkbox-v2 input:checked + .checkbox-v2-box::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.btn-login-v2 {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--brand, var(--brand, #96a63f)) 0%, var(--brand-hover, #7f8f34) 100%);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(150,166,63,0.35);
}
.btn-login-v2:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(150,166,63,0.5);
}
.btn-login-v2:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-message-v2 {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    display: none;
}
.error-message-v2.show {
    display: block;
    animation: errorIn 0.3s ease-out;
}
@keyframes errorIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 48px; }
    .hero-subtitle { font-size: 15px; }
    .door-panel {
        width: 100vw;
        max-width: 100vw;
        padding: 40px 24px;
    }
    .hero-logo-img { max-height: 80px; }
}
