﻿body {
    margin: 0;
    padding: 0;
    background-color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-container {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    transition: box-shadow 0.3s ease;
}

    .login-container:hover {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }

h2 {
    text-align: center;
    color: #000;
    font-size: 1.9rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px #dd6e00;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-icon-wrapper {
    position: relative;
}

    .input-icon-wrapper input {
        width: 100%;
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .input-icon-wrapper input:focus {
            border-color: #dd6e00;
            box-shadow: 0 0 5px rgba(221, 110, 0, 0.4);
            outline: none;
        }

.input-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #666;
    pointer-events: none;
}

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 2.5rem;
    }

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

    .toggle-password svg {
        width: 20px;
        height: 20px;
        transition: fill 0.3s ease;
    }

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    /*background-color: gray;*/
    background-color: #e78e22;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    button[type="submit"]:hover {
        background-color: silver;
        transform: scale(1.02);
    }

.error {
    margin-top: 1rem;
    color: red;
    text-align: center;
}

