﻿/* TANK Style Member Authentication CSS for Nær */

/* Base Layout */
.tank-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
}

    .tank-page::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 100%);
        pointer-events: none;
    }

/* Authentication Wrapper */
.auth-wrapper {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 40px 20px;
}

.auth-wrapper-small {
    max-width: 420px;
}

.auth-content {
    background: #fff;
    padding: 60px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .auth-content {
        padding: 40px 30px;
    }
}

/* Headers */
.auth-header {
    text-align: center;
    margin-bottom: 50px;
}

.tank-title-h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
    color: #000;
}

.tank-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
    margin: 0;
}

.tank-title-h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 40px 0 20px 0;
    color: #000;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

    .form-section:first-child {
        margin-top: 0;
    }

/* TANK Style Form Elements */
.tank-form-group {
    position: relative;
    margin-bottom: 30px;
}

.tank-input {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: #000;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .tank-input:focus,
    .tank-input:valid {
        border-bottom-color: #000;
    }

.tank-label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tank-input:focus ~ .tank-label,
.tank-input:valid ~ .tank-label,
.tank-input:not(:placeholder-shown) ~ .tank-label {
    top: -20px;
    font-size: 12px;
    color: #666;
}

.tank-input-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tank-input:focus ~ .tank-input-line {
    width: 100%;
}

.tank-form-text {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

/* Checkbox */
.tank-checkbox-group {
    margin: 20px 0;
}

.tank-checkbox {
    display: none;
}

.tank-checkbox-label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

    .tank-checkbox-label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border: 2px solid #e0e0e0;
        background: #fff;
        transition: all 0.3s ease;
    }

.tank-checkbox:checked + .tank-checkbox-label::before {
    border-color: #000;
    background: #000;
}

.tank-checkbox-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg) scale(0);
    transition: transform 0.3s ease;
}

.tank-checkbox:checked + .tank-checkbox-label::after {
    transform: translateY(-60%) rotate(45deg) scale(1);
}

/* Buttons */
.tank-form-actions {
    margin: 40px 0;
}

.tank-btn {
    display: inline-block;
    position: relative;
    padding: 18px 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: #000;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

    .tank-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .tank-btn:active {
        transform: translateY(0);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .tank-btn span {
        position: relative;
        z-index: 1;
    }

    .tank-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transition: left 0.5s ease;
    }

    .tank-btn:hover::before {
        left: 100%;
    }

    .tank-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
    }

/* Links */
.tank-link {
    color: #000;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

    .tank-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: #000;
        transition: width 0.3s ease;
    }

    .tank-link:hover::after {
        width: 100%;
    }

/* Form Footer */
.tank-form-footer {
    text-align: center;
    margin-top: 30px;
}

    .tank-form-footer p {
        margin: 10px 0;
        font-size: 14px;
        color: #666;
    }

/* Messages */
.tank-message {
    margin-bottom: 30px;
    padding: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

    .tank-message.show {
        opacity: 1;
        transform: translateY(0);
    }

.tank-message-success {
    color: #4CAF50;
}

.tank-message-error {
    color: #f44336;
}

.tank-message-content {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0;
    font-size: 14px;
}

/* Error Messages */
.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

    .error-message.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Success Animation */
.success-animation {
    margin-bottom: 30px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4CAF50;
    }
}

/* Loading Overlay */
.tank-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .tank-loader.show {
        opacity: 1;
        visibility: visible;
    }

.tank-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

    .password-strength.show {
        opacity: 1;
        transform: translateY(0);
    }

.strength-weak {
    color: #f44336;
}

.strength-medium {
    color: #FF9800;
}

.strength-strong {
    color: #4CAF50;
}

/* Responsive Grid */
.tank-container {
    width: 100%;
    padding: 0 20px;
}

.tank-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.tank-col-12 {
    flex: 0 0 100%;
    padding: 0 10px;
}

.tank-col-8 {
    flex: 0 0 66.66667%;
    padding: 0 10px;
}

.tank-col-6 {
    flex: 0 0 50%;
    padding: 0 10px;
}

.tank-col-4 {
    flex: 0 0 33.33333%;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .tank-col-8,
    .tank-col-6,
    .tank-col-4 {
        flex: 0 0 100%;
    }
}

/* Utilities */
.tank-text-center {
    text-align: center;
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .tank-page {
        background: #000;
        color: #fff;
    }

    .auth-content {
        background: #111;
    }

    .tank-title-h1,
    .tank-title-h3 {
        color: #fff;
    }

    .tank-subtitle {
        color: #999;
    }

    .tank-input {
        color: #fff;
        border-bottom-color: #333;
    }

        .tank-input:focus,
        .tank-input:valid {
            border-bottom-color: #fff;
        }

    .tank-input-line {
        background: #fff;
    }

    .tank-btn {
        background: #fff;
        color: #000;
    }

    .tank-link {
        color: #fff;
    }

        .tank-link::after {
            background: #fff;
        }

    .tank-checkbox-label::before {
        border-color: #333;
        background: #111;
    }

    .tank-checkbox:checked + .tank-checkbox-label::before {
        border-color: #fff;
        background: #fff;
    }

    .tank-checkbox-label::after {
        border-color: #000;
    }

    .tank-loader {
        background: rgba(0, 0, 0, 0.95);
    }

    .tank-spinner {
        border-color: #333;
        border-top-color: #fff;
    }
}
