:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --radius: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Sarabun', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(#2563eb10 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

.register-wrapper {
    width: 100%;
    max-width: 420px;
}

.register-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.register-header h2 {
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 700;
}

.register-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
}

.section-title {
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
}

.input-container input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.register-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.register-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .register-card {
        padding: 2rem 1.5rem;
        border-radius: 25px;
    }
}