:root {
    --asu-maroon: #8C1D40;
    --asu-dark-maroon: #5c132a;
    --asu-gold: #FFC627;
    --asu-black: #000000;
    --asu-white: #FFFFFF;
    --gray-bg: #F5F5F5;
    --text-dark: #222222;
    --text-light: #666666;
    --success-green: #2e7d32;
    --error-red: #d32f2f;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--gray-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 650px;
    background: var(--asu-white);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    overflow: hidden;
    margin: 20px;
}

/* --- Main Container (Split Layout) --- */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background: var(--asu-white);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    overflow: hidden;
    margin: 20px;
}

.brand-section {
    flex: 1;
    background: linear-gradient(135deg, var(--asu-maroon), var(--asu-dark-maroon));
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: var(--asu-white);
    overflow: hidden;
}

.brand-section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 198, 39, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.brand-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.form-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.help-link {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.help-link:hover { color: var(--asu-maroon); }

.form-header { margin-bottom: 25px; }
.form-header h1 { font-size: 1.8rem; color: var(--text-dark); margin-bottom: 8px; font-weight: 700; }
.form-header p { color: var(--text-light); font-size: 0.95rem; }

.msg {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.msg.error {
    background: #fdedf0;
    border-left: 4px solid var(--asu-maroon);
    color: #8C1D40;
}
.msg.success {
    background: #e7f4e4;
    border-left: 4px solid #1f7a1f;
    color: #1f7a1f;
}

.form-group { margin-bottom: 18px; }

label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--asu-maroon);
    background: var(--asu-white);
    box-shadow: 0 0 0 3px rgba(140, 29, 64, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    padding: 0;
}
.toggle-password:hover { color: var(--asu-maroon); }

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--asu-maroon);
    color: var(--asu-white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--asu-dark-maroon);
    transform: translateY(-1px);
}

.footer-links {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-links a {
    color: var(--asu-maroon);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--asu-dark-maroon);
}

.strength-meter-container {
    margin-top: 5px;
    margin-bottom: 10px;
}

.strength-bar {
    height: 4px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background-color: #e0e0e0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.strength-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strength-list li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 6px;
}

.strength-list li.valid {
    color: var(--success-green);
}

.strength-list li .icon {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.strength-list li .icon::before {
    content: "✕";
}

.strength-list li.valid .icon::before {
    content: "✓";
}

@media (max-width: 768px) {
    .register-container { flex-direction: column; height: auto; }
    .brand-section { padding: 40px 30px; }
    .brand-section::before, .brand-section::after { display: none; }
    .form-section { padding: 40px 30px; }
}
