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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    padding: 40px;
}

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.logo-box {
    width: 70px;
    height: 70px;
    background: #000;
    border: 3px solid #ff0000;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin: 0;
}

.logo-text span {
    font-size: 24px;
    font-weight: 300;
    color: #4ade80;
}

h2 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 32px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #f9fafb;
    color: #1a1a1a;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #ff0000;
    background: #fff;
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #ff0000;
}

.password-requirements {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
    transition: all 0.2s;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement .icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    font-weight: bold;
}

.requirement.valid {
    color: #10b981;
}

.requirement.valid .icon {
    color: #10b981;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover:not(:disabled) {
    background: #dc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-open-app {
    background: #4ade80;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.btn-open-app:hover {
    background: #22c55e;
    box-shadow: 0 6px 16px rgba(74, 222, 128, 0.4);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.loading-text.show {
    opacity: 1;
}

.error-message,
.success-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    display: none;
}

.error-message.show,
.success-message.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #86efac;
    text-align: center;
}

.success-message h3 {
    color: #16a34a;
    margin-bottom: 8px;
    font-size: 20px;
}

.success-message p {
    color: #15803d;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 24px;
    }

    .logo-box {
        width: 60px;
        height: 60px;
    }

    .logo-text h1 {
        font-size: 28px;
    }

    .logo-text span {
        font-size: 20px;
    }

    h2 {
        font-size: 20px;
    }
}
