/* mikes-foto-login-dark.css - Ver 2026.11 */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* very dark background */
.Xmain-bg-1 {
    background: url(../images/1.jpg) no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 1.5rem 0 2rem;                    /* top + bottom breathing room */
}

.Xmain-bg-1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.68), rgba(0,0,0,0.78));
    z-index: 1;
}

/* very bright background */
.main-bg-1 {
    background: url(../images/1.jpg) no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 1.5rem 0 2rem;                    /* top + bottom breathing room */
    /* Apply brightness directly to the background image */
    filter: brightness(1.5);                   /* Increases brightness by 50% */
}

.main-bg-1::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Remove or lighten the dark gradient */
    background: rgba(0,0,0,0.1);              /* Very light overlay to maintain contrast */
    z-index: 1;
}

.main-bg-1 > * {
    position: relative;
    z-index: 2;
}

/* Heading – just above the card */
h1 {
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 0.8rem 1rem 1.4rem;                 /* smaller top margin, decent space before card */
    padding: 0;
    letter-spacing: 1px;
    max-width: 90%;
    line-height: 1.18;
}

/* Main container – card + copyright follow naturally */
.sub-main-w3 {
    width: 100%;
    max-width: 420px;
    padding: 0 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* NO flex:1 or justify-content here → prevents pushing copyright to bottom */
}

/* Login card */
.login-card {
    width: 100%;
    background: rgba(20, 20, 35, 0.74);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    margin-bottom: 1rem;                        /* ← key: small space before copyright */
}

.top-avatar {
    padding: 2.4rem 2rem 1.6rem;
    background: linear-gradient(135deg, #0a5fc2, #b81e3a);
    text-align: center;
}

.top-avatar img {
    width: 200px;
    height: 133px;
    object-fit: cover;
    border-radius: 14px;
    border: 4px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 25px rgba(0,0,0,0.45);
}

.legend {
    color: #d0d0d0;
    font-size: 1.55rem;
    font-weight: 600;
    text-align: center;
    margin: 1.6rem 0 1.1rem;
}

.error {
    color: #ff6b6b;
    text-align: center;
    margin: 0.8rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.passcode-field {
    position: relative;
    margin: 1.4rem 1.8rem 0.9rem;
}

.passcode-field input {
    width: 100%;
    padding: 1rem 3.4rem 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(40,40,60,0.65);
    color: #fff;
    font-size: 1.08rem;
    outline: none;
}

.passcode-field input:focus {
    border-color: #4da3ff;
    box-shadow: 0 0 0 3px rgba(77,163,255,0.22);
    background: rgba(50,50,70,0.75);
}

.eye-toggle {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.45rem;
    color: #a0a0c0;
    cursor: pointer;
}

.eye-toggle:hover {
    color: #4da3ff;
}

.forgot-link {
    text-align: center;
    margin: 0.7rem 0 1.6rem;
    font-size: 0.94rem;
}

.forgot-link a {
    color: #6bb1ff;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

.submit-btn-wrapper {
    text-align: center;
    margin: 1.2rem 0 1.8rem;
}

.btn.submit {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #4da3ff, #3a8cff);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(77,163,255,0.3);
}

.btn.submit:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 30px rgba(77,163,255,0.45);
}

.stats {
    text-align: center;
    color: #9090a0;
    font-size: 0.94rem;
    margin: 0 1.5rem 1.4rem;
}

.bottom-text-w3ls {
    color: #a0a0c0;
    font-size: 0.98rem;
    display: block;
    text-align: center;
    margin: 1rem 0 1.6rem;
    text-decoration: none;
}

.bottom-text-w3ls:hover {
    color: #6bb1ff;
}

/* Copyright – small and directly below card */
.copyright {
    text-align: center;
    font-size: 0.60rem;                         /* very small */
    color: #808095;
    opacity: 0.7;
    padding: 0.4rem 1rem 1rem;
    width: 100%;
    max-width: 420px;
    margin: 0;                                  /* no extra top margin */
}

.copyright h2 {
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 1.9rem;
        margin: 0.7rem 0.8rem 1.1rem;
    }
    .top-avatar {
        padding: 2rem 1.5rem 1.3rem;
    }
    .top-avatar img {
        width: 170px;
        height: 113px;
        border-radius: 12px;
    }
    .legend {
        font-size: 1.4rem;
    }
    .copyright {
        font-size: 0.58rem;
        padding: 0.3rem 0.8rem 0.9rem;
    }
}