﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url('/images/signup.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* CONTAINER */

.container {
    width: 100%;
    max-width: 650px;
    margin: 120px auto 40px;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* HEADING */

h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #111827;
}

/* FORM GROUP */

.form-group {
    margin-bottom: 20px;
}

/* LABEL */

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #374151;
}

/* INPUTS */

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 6px;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

    /* INPUT FOCUS */

    input:focus,
    select:focus,
    textarea:focus {
        border-color: #38bdf8;
    }

/* TEXTAREA */

textarea {
    resize: none;
    min-height: 100px;
}

/* PASSWORD BOX */

.password-box {
    position: relative;
}

    .password-box span {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 18px;
    }

/* PASSWORD STRENGTH */

#passwordStrength {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.7;
    pointer-events: none;
}

/* RADIO + CHECKBOX */

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

/* INLINE OPTIONS */

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

/* ERROR */

.error {
    color: red;
    font-size: 13px;
    margin-top: 5px;
    display:block;
}

/* VALIDATION */

.invalid {
    border-color: red;
}

.valid {
    border-color: green;
}

/* BUTTON */

button {
    width: 100%;
    padding: 13px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

    button:hover {
        background: #0056b3;
    }

    button:disabled {
        background: gray;
        cursor: not-allowed;
    }

/* LINKS */

.link {
    margin-top: 15px;
    text-align: center;
    font-size: 15px;
}

    .link a {
        text-decoration: none;
        color: #2563eb;
        margin-left: 5px;
    }

        .link a:hover {
            text-decoration: underline;
        }

/* IMAGE CONTAINER */

.img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* TABLET */

@media(max-width:768px) {

    .container {
        max-width: 95%;
        padding: 25px;
        margin-top: 100px;
    }

    h2 {
        font-size: 28px;
    }
}

/* MOBILE */

@media(max-width:500px) {

    body {
        padding: 15px;
    }

    .container {
        max-width: 100%;
        padding: 20px;
        margin-top: 90px;
        border-radius: 10px;
    }

    h2 {
        font-size: 24px;
    }

    label {
        font-size: 14px;
    }

    input,
    select,
    textarea {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 11px;
        font-size: 14px;
    }

    .password-box span {
        font-size: 16px;
        right: 12px;
    }

    #passwordStrength {
        right: 38px;
        font-size: 11px;
    }

    .link {
        font-size: 14px;
    }

    .option-group {
        flex-direction: column;
        gap: 10px;
    }
}
