﻿* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: #f0f4ff;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

.container {
    width: 900px;
    height: 500px;
    display: flex;
    border-radius: 8px;
    overflow: hidden;

}

/* LEFT */
.left {
    flex: 1;
    background: linear-gradient(180deg, #2081ff 0%, #1877f2 100%);
    padding: 70px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

    .left h1 {
        color:white;
        font-size: 38px;
        font-weight: 600;
        margin-bottom: 15px;
        letter-spacing: 2px;
    }

    .left p {
        color: white;
        font-size: 14px;
        opacity: 0.9;
        line-height: 1.5;
        max-width: 320px;
        margin-top: 20px;
        letter-spacing: 0.5px;
    }

    .left::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(0deg, rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 40px 40px;
        pointer-events: none;
        border-radius: 8px 0 0 8px;
        z-index: 0;
    }

.circle1, .circle2 {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    pointer-events: none;
}

.circle1 {
    width: 80px;
    height: 80px;
    top: 30px;
    right: 40px;
    opacity: 0.4;
}

.circle2 {
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 30px;
    opacity: 0.3;
}

/* RIGHT */
.right {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
    background: white;
    border-radius:5px
}

    /* الصورة (رجعنا الحجم الأصلي) */
    .right img {
        width: 150px;
        height: auto;
        margin: 0 auto 15px;
        display: block;
    }

    .right h2 {
        color: #2081ff;
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 24px;
    }

    .right p.info {
        font-size: 12px;
        color: #666;
        margin-bottom: 30px;
        line-height: 1.4;
        max-width: 320px;
    }

form {
    display: flex;
    flex-direction: column;
    max-width: 320px;
}

input[type="text"], input[type="password"] {
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

    input[type="text"]:focus, input[type="password"]:focus {
        outline: none;
        border-color: #2081ff;
    }

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
    color: #2081ff;
}

    .checkbox-container input {
        margin-right: 8px;
        accent-color: #2081ff;
    }

    .checkbox-container a {
        margin-left: auto;
        text-decoration: none;
        color: #2081ff;
        font-weight: 600;
        font-size: 13px;
    }

        .checkbox-container a:hover {
            text-decoration: underline;
        }
/* ===== Button ===== */

button {
    background-color: #2081ff;
    border: 2px solid transparent; /* مهم */
    color: white;
    padding: 14px;
    border-radius: 25px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, border-color 0.3s;
    font-size: 14px;
}

    button:hover {
        background-color: white;
        border-color: #2081ff; /* الأزرق */
        color: #2081ff; /* اختياري عشان النص يبان */
        transform: scale(1.05);
    }

@media(max-width: 760px) {
    .container {
        flex-direction: column;
        width: 90%;
        height: auto;
    }

    .left, .right {
        border-radius: 8px 8px 0 0;
        flex: none;
        padding: 30px 20px;
    }

    .right {
        border-radius: 0 0 8px 8px;
    }
}

img {
    width: 150px;
    height: auto;
    margin: 0 auto;
    display: block;
    
}

/* Responsive */
@media (max-width: 760px) {
    body {
        padding-top: 20px;
    }

    .container {
        flex-direction: column;
        width: 90%;
        height: auto;
    }

    .left, .right {
        border-radius: 8px 8px 0 0;
        flex: none;
        padding: 30px 20px;
    }

    .right {
        border-radius: 0 0 8px 8px;
    }
}
