﻿body {
    background-image: url('/images/office.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

:root {
    --tt-accent-deep: #022c22;
    --tt-accent-main: #065f46;
    --tt-accent-teal: #0f766e;
    --tt-accent-light: #14b8a6;
    --tt-primary: #0f766e;
    --tt-primary-soft: rgba(15, 118, 110, 0.12);
    --tt-primary-strong: rgba(15, 118, 110, 0.28);
    --tt-text-main: #111827;
    --tt-text-muted: #6b7280;
    --tt-border: #e5e7eb;
    --tt-danger: #ef4444;
}

/* LOGIN CARD – green/teal theme */

/* LOGIN CARD – same look as register-card */

.login-card {
    margin-top:auto;
    margin-bottom:auto;

    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.25rem;
    border: 1px solid var(--tt-border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    padding: 2rem; /* you can drop this if you keep Bootstrap's p-4 */
    width: 100%;
    max-width: 400px;
}

    /* Same gradient overlay as register card */
    .login-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, var(--tt-accent-deep) 0%, var(--tt-accent-main) 40%, var(--tt-accent-teal) 70%, var(--tt-accent-light) 100% );
        opacity: 0.18;
        pointer-events: none;
        mix-blend-mode: soft-light;
    }

    .login-card .card-body {
        position: relative;
        z-index: 1;
    }

    /* Title */
    .login-card .card-title {
        font-size: 1.55rem;
        font-weight: 600;
        color: var(--tt-text-main);
        letter-spacing: 0.02em;
    }

    /* Labels */
    .login-card .form-label {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--tt-text-muted);
        margin-bottom: 0.35rem;
    }

    /* Inputs & input groups */
    .login-card .input-group-text {
        background: #f9fafb;
        border-color: var(--tt-border);
        color: var(--tt-text-muted);
        border-radius: 0.9rem 0 0 0.9rem;
    }

    .login-card .input-group .toggle-password.input-group-text {
        border-radius: 0 0.9rem 0.9rem 0;
    }

    .login-card .form-control {
        background: #ffffff;
        border-color: var(--tt-border);
        color: var(--tt-text-main);
        border-radius: 0 0.9rem 0.9rem 0;
        font-size: 0.95rem;
    }

        .login-card .form-control::placeholder {
            color: #9ca3af;
        }

        /* Focus – same green/teal glow as register */
        .login-card .form-control:focus {
            background: #ffffff;
            border-color: var(--tt-primary);
            box-shadow: 0 0 0 1px var(--tt-primary-soft), 0 0 0 4px rgba(20, 184, 166, 0.28); /* close to #14b8a6 */
            color: var(--tt-text-main);
        }

    /* Icon reacts on focus */
    .login-card .input-group:focus-within .input-group-text {
        border-color: var(--tt-primary);
        color: var(--tt-primary);
        box-shadow: 0 0 0 1px var(--tt-primary-soft);
    }

    /* Validation */
    .login-card .invalid-feedback {
        font-size: 0.78rem;
        color: var(--tt-danger);
    }

    /* Password toggle */
    .login-card .toggle-password {
        background: #f9fafb;
        border-color: var(--tt-border);
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
        cursor: pointer;
    }

        .login-card .toggle-password:hover {
            background: var(--tt-primary-soft);
            color: var(--tt-primary);
            border-color: var(--tt-primary);
        }

    /* Remember me */
    .login-card .form-check-input {
        border-radius: 0.35rem;
        border-color: var(--tt-border);
        cursor: pointer;
    }

        .login-card .form-check-input:checked {
            background-color: var(--tt-primary);
            border-color: var(--tt-primary);
        }

    .login-card .form-check-label {
        font-size: 0.9rem;
        color: var(--tt-text-muted);
    }

.login-btn {
    /* override Bootstrap secondary */
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #059669, /* green */
    #0f766e, /* teal */
    #0ea5e9 /* blue accent */
    );
    color: #f9fafb;
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.45);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

    /* Icon a tiny bit larger & bright */
    .login-btn i {
        font-size: 1rem;
        color: #bbf7d0;
    }

    /* Hover / active */
    .login-btn:hover {
        background: linear-gradient(135deg, #10b981, #0f766e, #0284c7 );
        box-shadow: 0 10px 24px rgba(15, 118, 110, 0.6);
        color: #f9fafb;
    }

    /* Focus ring */
    .login-btn:focus,
    .login-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px #ecfdf5, 0 0 0 4px rgba(45, 212, 191, 0.7);
    }

/* Small screens */
@media (max-width: 576px) {
    .login-card {
        border-radius: 1rem;
        padding: 1.6rem 1.3rem;
    }

        .login-card .card-title {
            font-size: 1.35rem;
        }
}


