/* Modern Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #333;
}

/* Background Animation */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: -1;
}

.login-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 60%);
    animation: rotate 30s linear infinite;
}

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

/* Card Design */
.login-container {
    width: 100%;
    max-width: 380px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255,255,255,0.5);
    text-align: center;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

/* Icon */
.login-icon {
    width: 60px;
    height: 60px;
    background: #222;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.login-icon svg {
    width: 28px;
    height: 28px;
}

/* Typography */
.login-card h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.5px;
}

.login-card p {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 40px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Elements */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    background: #f4f6f8;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 4px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    background: #fff;
    border-color: #222;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

input[type="text"]::placeholder {
    color: #bbb;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 14px;
}

/* Button */
button {
    width: 100%;
    padding: 16px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
#pvm-message {
    margin-top: 20px;
    font-size: 14px;
    min-height: 20px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#pvm-message.show {
    opacity: 1;
    transform: translateY(0);
}

.error {
    color: #e63946;
}

.success {
    color: #2a9d8f;
}

/* Spinner */
.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

button.loading span {
    opacity: 0;
}

button.loading .btn-spinner {
    display: block;
}

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