:root {
    --primary-blue: #0286F2;
    --primary-dark: #001F4D;
    --success-green: #28A745;
    --gray: #6C757D;
    --light-gray: #F8F9FA;
    --border-gray: #E0E0E0;
    --error-red: #DC3545;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e8ecef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 180px;
    height: auto;
}

.title {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group .hint {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(2, 134, 242, 0.15);
}

.form-control:hover {
    border-color: var(--primary-blue);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C757D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #0270d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 134, 242, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    align-items: flex-start;
    gap: 12px;
}

.alert.show {
    display: flex;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-green);
    color: var(--success-green);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-red);
    color: var(--error-red);
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-message {
    font-size: 0.9rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn.loading .spinner {
    display: block;
}

.btn.loading .btn-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    height: 1px;
    background: var(--border-gray);
    margin: 24px 0;
}

.footer {
    text-align: center;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 20px;
}

/* Input number without arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 480px) {
    .container {
        padding: 24px;
        margin: 10px;
    }

    .logo {
        max-width: 140px;
    }

    .title {
        font-size: 1.3rem;
    }
}
