/* Universal Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #e3f2f5;
}


/* Header Styles */

.header {
    width: 100%;
    background: linear-gradient(135deg, #2aa3a5, #026666);
    height: 150px;
    color: white;
    display: flex;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 4px solid #024c4c;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-text h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: bold;
}

.header-text p {
    margin: 5px 0 0;
    font-size: 1em;
}

h2 {
    text-align: center;
    color: #333;
}


/* Logo */

.logo {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    border-radius: 50%;
    border: 3px solid white;
}


/* ========== FORM CONTAINER ========== */

.container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100v);
    margin-top: 20px;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    width: 420px;
    text-align: left;
}


/* ========== FORM HEADING ========== */

.container h2 {
    font-size: 1.9rem;
    text-align: center;
    color: #024c4c;
    margin-bottom: 20px;
}


/* ========== FORM GROUP ========== */

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #2aa3a5;
    box-shadow: 0 0 6px rgba(42, 163, 165, 0.3);
}


/* ========== ERROR MESSAGES ========== */

.error {
    color: red;
    font-size: 13px;
    margin-top: 4px;
}


/* ========== BUTTON STYLES ========== */

button,
#registerBtn {
    background-color: #2aa3a5;
    color: white;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
#registerBtn:hover {
    background-color: #026666;
}

.toggle-password {
    font-size: 18px;
    user-select: none;
}

#passwordHint {
    margin-top: 4px;
}

#mismatchAlert {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========== ALREADY REGISTERED LINK ========== */

.login-redirect {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.login-redirect a {
    color: #026666;
    font-weight: 600;
    text-decoration: none;
}

.login-redirect a:hover {
    text-decoration: underline;
}

.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}