/* CSS for Signup Page */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --blue: #1667d9;
    --dark-blue: #0b2140;
    --navy: #103a63;
    --navy-2: #174e7a;
    --yellow: #f2b84b;
    --light: #ffffff;
    --grey: #f4f7fb;
    --line: #dbe4f0;
    --dark-grey: #415261;
    --dark: #14253a;
    --success: #1fa874;
    --accent-soft: #edf4ff;
    --input-bg: #f8fbff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Sans Thai', 'Open Sans', sans-serif;
    color: var(--dark);
    background:
        radial-gradient(circle at top right, rgba(242, 184, 75, 0.12), transparent 28%),
        linear-gradient(135deg, #071a33 0%, #103a63 48%, #174e7a 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.06), transparent 55%);
    pointer-events: none;
}

.signup-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 2.2rem 2rem 2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.985);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 24px 60px rgba(2, 12, 27, 0.24);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.auth-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-grey);
    background: var(--grey);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-close-button:hover {
    color: var(--dark-blue);
    background: var(--accent-soft);
    border-color: var(--blue);
    transform: translateY(-1px);
}

.signup-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.signup-header .icon {
    font-size: 3.2rem;
    color: var(--blue);
    margin-bottom: 0.6rem;
}

.signup-header h2 {
    margin: 0 0 0.35rem;
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--dark-blue);
}

.signup-header p {
    margin: 0;
    color: var(--dark-grey);
    font-size: 0.95rem;
    font-weight: 600;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-control {
    height: 50px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 1rem;
    color: var(--dark-blue);
    font-weight: 600;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: #6d7b8a;
    font-weight: 500;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--blue);
    color: var(--dark);
    box-shadow: 0 0 0 4px rgba(21, 101, 216, 0.16);
    outline: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--dark-grey);
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    width: 100%;
    height: 50px;
    font-weight: 700;
    color: #fff;
    background: var(--blue);
    border: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(21, 101, 216, 0.16);
    padding: 0.75rem;
}

.btn-primary:hover {
    background: #1259be;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(21, 101, 216, 0.14);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.2rem 0;
    color: var(--dark-grey);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.btn-google {
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dark-blue);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-google:hover {
    color: var(--dark-blue);
    background: var(--accent-soft);
    border-color: var(--blue);
}

.btn-google .google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.footer-link {
    text-align: center;
    margin-top: 1.4rem;
}

.footer-link a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.footer-link a:hover {
    text-decoration: underline;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 26, 51, 0.72);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}
