* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
}

.register-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.register-container {
    width: 100%;
    max-width: 450px;
    background: transparent;
    padding: 2rem;
    text-align: center;
    position: relative;
}

/* Logo Section */
.logo-section {
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.logo-circle {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeIn 1s ease-out;
    margin: 0 auto 1.5rem;
}

.logo-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Register Title */
.register-title {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.register-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4696d1;
    margin-bottom: 0.5rem;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Registration Type Selection */
.registration-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto 2rem;
    animation: slideUp 0.8s ease-out 0.2s backwards;
    width: 100%;
}

.type-card {
    background: #f8fbff;
    border: 2px solid #e3f2fd;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.type-card:hover {
    transform: translateY(-2px);
    border-color: #5face4;
    box-shadow: 0 4px 12px rgba(95, 172, 228, 0.15);
    background: white;
}

.type-card i {
    font-size: 2.5rem;
    color: #4696d1;
    margin-bottom: 0.75rem;
    display: block;
    transition: all 0.3s ease;
}

.type-card:hover i {
    transform: scale(1.1);
    color: #5face4;
}

.type-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4696d1;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.type-card p {
    font-size: 0.875rem;
    color: #a4d2f4;
    margin: 0;
    line-height: 1.4;
}

/* Register Form */
.register-form {
    max-width: 100%;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out 0.2s backwards;
    width: 100%;
}

/* Alert Messages */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: left;
    animation: slideDown 0.5s ease-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e3f2fd;
    border-radius: 16px;
    font-size: 1rem;
    background: #f8fbff;
    transition: all 0.3s ease;
    height: 54px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #5face4;
    background: white;
    box-shadow: 0 4px 12px rgba(95, 172, 228, 0.15);
}

.form-control::placeholder {
    color: #a4d2f4;
    opacity: 0.8;
    font-size: 0.98rem;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 1.2rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a4d2f4;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #5face4;
    transform: translateY(-50%) scale(1.1);
}

/* Back Button */
.back-button {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #5face4 0%, #4696d1 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(95, 172, 228, 0.3);
    z-index: 1000;
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 172, 228, 0.4);
}

.back-button:active {
    transform: translateY(0);
}

/* Register Button */
.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #5face4 0%, #4696d1 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(95, 172, 228, 0.3);
    cursor: pointer;
    position: relative;
    height: 54px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 172, 228, 0.4);
}

.btn-register:active {
    transform: translateY(0);
}

.btn-register:disabled {
    cursor: not-allowed;
}

.btn-text,
.btn-loader {
    display: inline-block;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-loader .dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: dotFlashing 1s infinite linear alternate;
}

.btn-loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.btn-loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotFlashing {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50%, 100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Login Link */
.login-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.login-link a {
    color: #4696d1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #5face4;
    text-decoration: underline;
}

/* Hide number input arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Responsive Design */

/* Desktop */
@media (min-width: 768px) {
    .register-container {
        max-width: 500px;
        padding: 2.5rem;
    }
    
    .registration-types {
        gap: 1.2rem;
    }
    
    .type-card {
        padding: 1.75rem;
    }
}

/* Large Desktop */
@media (min-width: 992px) {
    .registration-types {
        flex-direction: row;
        gap: 1rem;
    }
    
    .type-card {
        flex: 1;
        padding: 1.5rem 1rem;
    }
    
    .type-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .type-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .type-card p {
        font-size: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .register-wrapper {
        padding: 0.5rem;
    }
    
    .register-container {
        padding: 10px;
        border-radius: 16px;
    }

    .logo-circle {
        width: 80px;
        height: 80px;
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .register-title h1 {
        font-size: 1.5rem;
    }

    .type-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .type-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .type-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .type-card p {
        font-size: 0.8rem;
    }

    .form-control {
        height: 44px;
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .btn-register {
        height: 44px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .btn-back {
        height: 40px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .back-button {
        width: 40px;
        height: 40px;
        top: 1rem;
        left: 1rem;
        font-size: 1.1rem;
        border-radius: 10px;
    }
}

/* Smooth page load animation */
@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.register-wrapper {
    animation: pageLoad 0.5s ease-out;
}

/* Back Button in Form */
.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem;
    background: transparent;
    color: #a4d2f4;
    border: 2px solid #e3f2fd;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 50px;
}

.btn-back:hover {
    background: #f8fbff;
    border-color: #5face4;
    color: #4696d1;
}

.btn-back i {
    margin-right: 0.5rem;
}