* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    overflow-y: auto;
}

.container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    max-width: 350px;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ssl-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 25px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.ssl-badge::before {
    content: '🔒';
    font-size: 13px;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 15px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -150px;
    left: -100px;
}

.header::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -100px;
    right: -80px;
}

.logo-wrapper {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: logo-entrance 0.8s ease-out;
}

@keyframes logo-entrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.logo-wrapper svg {
    width: 30px;
    height: 30px;
    fill: url(#gradient);
}

.header h1 {
    color: white;
    font-size: 25px;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: text-entrance 0.8s ease-out 0.2s both;
}

@keyframes text-entrance {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    animation: text-entrance 0.8s ease-out 0.4s both;
}

.welcome-message {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.welcome-message h2 {
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.welcome-message p {
    color: #718096;
    font-size: 12px;
    line-height: 1.6;
}

.form-container {
    padding: 25px 30px 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 10px 10px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    color: #2d3748;
    background: #f7fafc;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #cbd5e0;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    background: white;
}

input[type="text"].error,
input[type="password"].error {
    border-color: #fc8181;
    background: #fff5f5;
}

input[type="text"].success,
input[type="password"].success {
    border-color: #68d391;
    background: white;
}

.icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 15px;
}

.icon-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    transition: all 0.3s ease;
    font-size: 15px;
}

.icon-right:hover {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.error-message {
    color: #fc8181;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 5px;
}

.error-message.show {
    display: flex;
}

.forgot-password {
    text-align: right;
    margin-top: 12px;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.forgot-password a:hover {
    color: #764ba2;
    text-decoration: underline;
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

button[type="submit"]:active:not(:disabled) {
    transform: translateY(-1px);
}

button[type="submit"]:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #a0aec0;
    font-size: 13px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 15px;
}

.register-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
}

.register-section p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.register-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.register-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.feature {
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-text {
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

.shake {
    animation: shake 0.4s;
}