:root {
    --primary-color: #2272b1;
    --secondary-color: #4caf50;
    --accent-color: #ffa726;
    --danger-color: #f44336;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #212121;
    --light-text: #757575;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo i {
    margin-right: 8px;
    font-size: 1.5rem;
}

.header-actions {
    margin-left: auto;
}

.header-actions a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content */
.register-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    text-align: center;
    margin-bottom: 24px;
}

.welcome-section h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.welcome-section p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.register-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease forwards;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-field {
    position: relative;
}

.input-field input,
.input-field select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    appearance: none; /* Removes default styling from select */
}

.input-field input:focus,
.input-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 2px rgba(34, 114, 177, 0.1);
}

.input-field select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="%23757575" d="M0 0h12L6 6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.input-field .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    cursor: pointer;
}

.user-type-selector {
    display: flex;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.user-type-option {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--light-text);
    border-bottom: 3px solid transparent;
}

.user-type-option.active {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
}

.register-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.register-button:hover {
    background-color: #1a5f9c;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.terms-checkbox input {
    margin-right: 10px;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.terms-checkbox label {
    font-size: 0.85rem;
    color: var(--light-text);
    line-height: 1.4;
}

.terms-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.login-prompt {
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Password strength meter */
.password-strength {
    height: 5px;
    border-radius: 3px;
    margin-top: 8px;
    transition: all 0.3s ease;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--light-text);
}

.weak {
    background-color: var(--danger-color);
    width: 25%;
}

.medium {
    background-color: var(--accent-color);
    width: 50%;
}

.strong {
    background-color: var(--secondary-color);
    width: 100%;
}

/* Error messages */
.error-message {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* Footer Styles */
footer {
    background-color: white;
    padding: 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 8px;
    font-size: 0.85rem;
}

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

.copyright {
    font-size: 0.75rem;
    color: var(--light-text);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .header-actions {
        margin-left: auto;
    }
}

.text-danger {
    color: #dc3545 !important;
}
