/* --- Main Layout & Background --- */
.tkc-login-container {
    background-image: url('/static/img/tkc-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Optional overlay to darken background slightly if image is too bright */
.tkc-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* --- The Central Card --- */
.tkc-card {
    /* Glass-like effect with white border */
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark */
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px); /* Slight blur behind the card */
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    /* Ensure it doesn't touch edges on mobile */
    margin: 1rem;
    overflow: hidden; /* Prevents children from spilling out */
}

/* --- Typography & Branding --- */
.tkc-title-text {
    font-family: "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.tkc-logo {
    max-width: 250px;
    height: auto;
}

/* --- Form Elements (Scoped to container to override global styles) --- */
.tkc-login-container input[type="text"],
.tkc-login-container input[type="password"],
.tkc-login-container .form-control-tkc {
    background-color: rgba(33, 37, 41, 0.9) !important; /* Dark background */
    border: 1px solid #495057 !important;
    color: #fff !important;
    border-radius: 0 !important; /* Force sharp edges */
    box-shadow: none !important;
}

.tkc-login-container input:focus,
.tkc-login-container .form-control-tkc:focus {
    background-color: rgba(0, 0, 0, 1) !important;
    border-color: var(--primary-orange) !important;
    color: #fff !important;
}

.tkc-login-container .form-control-tkc::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* --- Checkbox Styling --- */
.tkc-login-container .form-check-input {
    background-color: rgba(33, 37, 41, 0.9);
    border: 1px solid #495057;
    border-radius: 2px; /* Slight roundness for checkbox */
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
}

.tkc-login-container .form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.tkc-login-container .form-check-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(173, 120, 71, 0.25); /* Adjusted to match orange alpha */
}

.tkc-login-container .form-check-label {
    color: white;
    padding-left: 0.5rem;
}

/* --- Buttons --- */
.btn-tkc-primary {
    background-color: var(--primary-orange);
    border: none;
    color: white;
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.btn-tkc-primary:hover {
    background-color: var(--orange-darker);
    color: white;
}

/* --- Input Group Addon (Eye Icon) --- */
.password-span-tkc {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
}

.password-span-tkc:hover {
    background-color: var(--orange-darker);
}

/* --- Utilities --- */
.text-shadow {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.vertical-divider {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hide divider on mobile */
@media (max-width: 991.98px) {
    .vertical-divider {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}
