﻿body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg,#00A8FF);
}

.login-container {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

    .login-box h2 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #333;
    }

.form-group {
    position: relative;
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #888;
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg,#00A8FF, #5AAFC8);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-login:hover:not(:disabled) {
        opacity: 0.9;
    }

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-links {
    margin-top: 12px;
    font-size: 13px;
}

    .login-links a {
        color: #00A8FF;
        text-decoration: none;
    }

.form-control, input, select, textarea, .btn-login {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Container for checkbox */
.custom-checkbox {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    display: inline-block;
    color: #333;
}

    /* Hide the default checkbox */
    .custom-checkbox input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    /* Create custom checkmark */
    .custom-checkbox .checkmark {
        position: absolute;
        left: 0;
        top: 0;
        height: 18px;
        width: 18px;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        border-radius: 4px;
        transition: 0.2s;
    }

    /* When checkbox is checked */
    .custom-checkbox input:checked ~ .checkmark {
        background-color: #4CAF50;
        border-color: #4CAF50;
    }

    /* Add a tick mark */
    .custom-checkbox .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    .custom-checkbox input:checked ~ .checkmark:after {
        display: block;
        left: 6px;
        top: 2px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
