﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0; /* optional: remove padding if you want full center */
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    padding: 40px;
}

.full-screen-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .login-icon svg {
        width: 40px;
        height: 40px;
        fill: white;
    }

.login-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    color: #c33;
    font-size: 14px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        color: #333;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 14px;
    }

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #999;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #999;
    cursor: pointer;
    transition: fill 0.3s ease;
}

    .toggle-password:hover {
        fill: #667eea;
    }

.form-group input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .form-group input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-group input.input-validation-error {
        border-color: #e74c3c;
    }

.text-danger {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

    .remember-me input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #999;
    font-size: 14px;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e1e8ed;
    }

    .divider span {
        padding: 0 15px;
    }

.register-link {
    text-align: center;
    color: #666;
    font-size: 14px;
}

    .register-link a {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
    }

        .register-link a:hover {
            text-decoration: underline;
        }

.eye-slash {
    display: none;
}
