﻿/* خلفية متحركة */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

    /*background: linear-gradient(270deg,#323d42, #3f778c, #38524c, #6587a1,#8fa9b5,#cbdced);*/

    background-color: #cbdced;
    background-size: 600% 600%;
    animation: gradientBG 12s ease infinite;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    width: 600px;
    height: 800px;
    text-align: center;
    transition: 0.5s;
}

.logo img {
    width: 200px;
    height: 200px;
    /*border-radius: 50%;*/
    border: 2px solid #2c5364;
    padding: 5px;
    margin-bottom: 15px;
}

h1 {
    margin-bottom: 25px;
    color: #203a43;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group input {
        width: 100%;
        padding: 12px 40px 12px 12px;
        border: 1px solid #ccc;
        border-radius: 10px;
        outline: none;
        transition: 0.3s;
    }

        .input-group input:focus {
            border-color: #2c5364;
            box-shadow: 0 0 8px rgba(44, 83, 100, 0.3);
        }

    .input-group i {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        color: #2c5364;
    }

    .input-group select,
    .input-group input {
        width: 100%;
        padding: 12px 40px 12px 12px;
        border: none;
        border-radius: 8px;
        background: #f1f1f1;
        font-size: 20px;
        outline: none;
        transition: background 0.3s, color 0.3s;
    }

        .input-group select:focus,
        .input-group input:focus {
            background: #e6e6e6;
        }

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #203a43, #2c5364);
    /*background: linear-gradient(135deg, #4e56b0, #ede2e0);*/
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn:hover {
        background: linear-gradient(135deg, #2c5364, #0f2027);
    }

.links {
    margin-top: 15px;
    font-size: 20px;
}

    .links a {
        color: #2c5364;
        text-decoration: none;
        transition: 0.3s;
    }

        .links a:hover {
            text-decoration: underline;
        }

/* 🌙 الوضع الليلي */
.dark-mode {
    background: #121212 !important;
    animation: none;
}

    .dark-mode .login-box {
        background: #1e1e1e;
        color: #fff;
        box-shadow: 0 8px 20px rgba(255,255,255,0.1);
    }

    .dark-mode input {
        background: #2a2a2a;
        border: 1px solid #444;
        color: #fff;
    }

    .dark-mode .btn {
        background: linear-gradient(135deg, #444, #000);
    }
