@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    padding: 20px 0;
}

.register-container {
    width: 100%;
    padding: 20px;
}

.register-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 420px;
    margin: 0 auto;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 25px;
}

.back-arrow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.back-arrow:hover {
    color: #8b5cf6;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}
.social-login {
    width: 100%;
    margin-bottom: 1rem;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    
    width: 100%;
    padding: 10px;
    
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    
    color: #3c4043;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s, box-shadow .3s;
}

.google-btn:hover {
    background-color: #f8f9fa;
    border-color: #c6c6c6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.google-btn img {
    width: 18px;
    height: 18px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 15px;
}
.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #fdfdfd;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input::placeholder { color: #999; }

.input-group input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.password-group {
    display: flex;
    align-items: center;
}
.password-group input {
    padding-right: 45px;
}
.password-toggle {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    border: none;
    background: transparent;
    width: 45px;
    cursor: pointer;
    color: #aaa;
    font-size: 1rem;
}

#password-requirements {
    margin-top: -5px;
    margin-bottom: 15px;
    padding: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

#password-requirements.visible {
    opacity: 1;
    max-height: 200px;
}

#password-requirements ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 5px;
}

#password-requirements li {
    font-size: 0.8rem;
    color: #e74c3c;
    background-color: #fdecec;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.3s;
}

#password-requirements li.valid {
    color: #2a9d8f;
    background-color: #eaf7ed;
    text-decoration: line-through;
}

#confirm-message {
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 15px;
    font-weight: 500;
    height: 1em;
}
.terms-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}
.terms-group label {
    font-size: 0.9rem;
    color: #555;
}
.terms-group a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
}
.login-link {
    margin-top: 30px;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}
.login-link a {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
}
.btn-register {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background-image: linear-gradient(to right, #8f10c5ff, #000cb9ff);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(157, 80, 187, 0.25);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 80, 187, 0.35);
}
.logo img {
    max-width: 180px;
    height: auto;
}