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

:root{
    --tf-bg-1: #1f4c31;
    --tf-bg-2: #2e6a3d;
    --tf-bg-3: #3d8a4a;
    --tf-card: rgba(255, 255, 255, 0.12);
    --tf-card-border: rgba(255, 255, 255, 0.25);
    --tf-text: #f5f6f0;
    --tf-text-muted: rgba(245, 246, 240, 0.7);
    --tf-input-bg: rgba(255, 255, 255, 0.12);
    --tf-input-border: rgba(255, 255, 255, 0.35);
    --tf-input-text: #f5f6f0;
    --tf-button-bg: #d8e7c4;
    --tf-button-text: #2b4d2f;
    --tf-button-shadow: rgba(0, 0, 0, 0.25);
}

body.login{
    font-family: "Manrope", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(1200px 800px at 70% 25%, rgba(255, 255, 255, 0.22), transparent 60%),
        radial-gradient(900px 700px at 25% 20%, rgba(255, 255, 255, 0.14), transparent 65%),
        linear-gradient(150deg, var(--tf-bg-1), var(--tf-bg-2) 55%, var(--tf-bg-3));
    min-height: 100vh;
}
body.tf-no-scroll{
    overflow: hidden;
}

body.login:before{
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.login #login{
    width: min(420px, 92vw);
    padding: 5vh 0 10vh;
}

.login .tf-hero{
    text-align: center;
    margin: 0 0 14px;
}
.login .tf-hero h2{
    color: var(--tf-text);
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
    font-weight: 600;
}

.login .notice.notice-info{
    background: rgba(255, 255, 255, 0.12);
    border-left: none;
    border-radius: 12px;
    color: var(--tf-text);
    text-align: center;
    padding: 14px 16px;
    margin: 0 0 22px;
    box-shadow: none;
}
.login .notice.notice-info p{
    margin: 0;
    color: var(--tf-text);
    font-size: 16px;
}

.login h1 a{
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 140px;
    height: 140px;
    margin: 0 auto 22px;
}


.login #login p,
.login #login label{
    color: var(--tf-text);
}

.login #login .message,
.login #login #login_error{
    border-left: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--tf-text);
    box-shadow: none;
}
.login .message,
.login .notice{
    border-left: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--tf-text);
    border-radius: 12px;
    box-shadow: none;
}
.login .login-message{
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--tf-text);
    padding: 14px 16px;
    margin: 12px 0 18px;
}
.login .login-message p{
    margin: 0;
    color: var(--tf-text);
}
body.login-action-register .notice.notice-info.message{
    display: none;
}
.login .message p,
.login .notice p{
    margin: 0;
    color: var(--tf-text);
}

.login form{
    background: var(--tf-card);
    border: 1px solid var(--tf-card-border);
    border-radius: 18px;
    padding: 26px 26px 28px;
    margin-top: 10px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.login form .input,
.login input[type="text"],
.login input[type="email"],
.login input[type="password"]{
    background: var(--tf-input-bg);
    border: 1px solid var(--tf-input-border);
    color: var(--tf-input-text);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.login form .input:focus{
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.login form input::placeholder{
    color: rgba(245, 246, 240, 0.65);
}

.login form .description{
    color: var(--tf-text-muted);
}

.login .button-primary,
.login .button.wp-generate-pw{
    background: var(--tf-button-bg);
    border: none;
    color: var(--tf-button-text) !important;
    border-radius: 12px;
    padding: 10px 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 12px 24px var(--tf-button-shadow);
    width: 100%;
    font-weight: 600;
}

.login .button-primary:hover,
.login .button-primary:focus{
    background: #e8f1d7;
    color: var(--tf-button-text);
}

.login .forgetmenot label{
    color: var(--tf-text-muted);
}

.login #nav,
.login #backtoblog{
    color: var(--tf-text-muted);
    text-align: center;
}

.login #nav a,
.login #backtoblog a{
    color: var(--tf-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
}

.login #registerform label[for="user_email"]{
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.login .tf-video-link{
    text-align: center;
    margin: 14px 0 0;
}
.login .tf-video-link a{
    color: var(--tf-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 2px;
}

.login .tf-video-overlay{
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 12, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}
.login .tf-video-overlay.is-open{
    opacity: 1;
    pointer-events: auto;
}
.login .tf-video-modal{
    width: min(720px, 92vw);
    max-height: 90vh;
    background: rgba(12, 24, 15, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    z-index: 1;
}
.login .tf-video-modal video{
    width: 100%;
    height: auto;
    max-height: calc(90vh - 24px);
    border-radius: 12px;
    display: block;
    background: #0f2d1b;
}
.login .tf-video-close{
    position: absolute;
    top: 6px;
    right: 10px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--tf-text);
    font-size: 28px;
    line-height: 48px;
    cursor: pointer;
    z-index: 2;
    pointer-events: auto;
}
.login .tf-video-close:hover{
    background: rgba(255, 255, 255, 0.25);
}

.login #registerform p.submit{
    margin-top: 18px;
}
.login #registerform .button-primary{
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    width: 100%;
}

.login #registerform #user_login,
.login #registerform label[for="user_login"] {
    display: none;
}

@media (max-width: 520px){
    .login #login{
        padding: 3vh 0 6vh;
    }
    .login form{
        padding: 22px;
    }
}
