/* =========================================
   1. GLOBAL & BACKGROUND
   ========================================= */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;

    background-image: linear-gradient(rgba(40, 116, 193, 0.7), rgba(40, 116, 193, 0.7)),
                      url('../images/hall.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =========================================
   2. CONTAINERS (SMALLER VERSION)
   ========================================= */
.form-container {
    width: 92%;
    max-width: 340px;
    margin: 15px auto;
    display: flex;
    justify-content: center;
}

.container {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   3. LOGO & TEXT
   ========================================= */
.logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 10px;
}

h1, h2, h3 {
    margin: 8px 0;
    font-size: 22px;
}

p {
    font-size: 13px;
    color: #555;
    margin: 10px 0 5px 0;
    text-align: center;
}

.error-msg {
    color: #d9534f;
    font-size: 12px;
    margin-bottom: 8px;
}

.success-msg {
    color: #5cb85c;
    font-size: 12px;
    margin-bottom: 8px;
}

/* =========================================
   4. INPUTS & ICONS
   ========================================= */
.input-group {
    position: relative;
    width: 100%;
    margin: 8px 0;
}

.icon-border {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    color: #3399ff;
    pointer-events: none;
    z-index: 2;
    font-size: 13px;
}

.input-group input {
    width: 100%;
    padding: 11px 12px 11px 45px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    background: #f9fbff;
    box-sizing: border-box;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #3399ff;
    box-shadow: 0 0 6px rgba(51,153,255,0.2);
    background: #fff;
}

/* =========================================
   5. BUTTONS
   ========================================= */
input[type="submit"],
button,
.signup-btn,
.back-btn {
    display: block;
    width: 100%;
    padding: 11px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-size: 14px;
    font-weight: 600;
    background: #3399ff;
    color: white;
    transition: background 0.3s, transform 0.1s;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
}

input[type="submit"]:hover,
button:hover,
.signup-btn:hover,
.back-btn:hover {
    background: #1a8cff;
}

input[type="submit"]:active,
button:active {
    transform: scale(0.98);
}

.signup-btn-wrapper,
.back-btn-wrapper {
    width: 100%;
}

/* =========================================
   6. SOCIAL ICONS
   ========================================= */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.social-icons i {
    font-size: 16px;
    color: #555;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #f9fbff;
    transition: 0.3s;
}

.social-icons i:hover {
    background: #3399ff;
    color: #fff;
}

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .form-container {
        width: 95%;
        max-width: 320px;
    }

    .container {
        padding: 20px 15px;
    }
}

@media (max-width: 380px) {
    .form-container {
        width: 96%;
        max-width: 300px;
    }

    .container {
        padding: 18px 12px;
    }

    .logo img {
        width: 55px;
        height: 55px;
    }

    .input-group input {
        font-size: 13px;
        padding: 10px 10px 10px 42px;
    }

    button,
    input[type="submit"],
    .signup-btn,
    .back-btn {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
    }
}