/* =============================================
 * AUTH STYLES - SPOLOČNÉ PRE LOGIN A REGISTER
 * ============================================= */

/* Formuláre */
.form-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 15px;
}

/* Input štýly */
.form-group input,
.form-group select,
.half-width-input {
    width: 100%;
    padding: 15px 18px 15px 45px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--primary-ultralight);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 100, 212, 0.15);
    background-color: white;
}

/* Input stavy */
.form-group input.input-success,
.form-group select.input-success {
    border-color: var(--success-color) !important;
    background-color: rgba(39, 174, 96, 0.05) !important;
    animation: success-pulse 0.5s ease;
}

@keyframes success-pulse {
    0% { border-color: var(--success-color); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.2); }
    50% { box-shadow: 0 0 0 5px rgba(39, 174, 96, 0.1); }
    100% { border-color: var(--success-color); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.form-group input.input-error,
.form-group select.input-error {
    border-color: var(--danger-color) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    animation: error-shake 0.5s ease;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Input s ikonou */
.input-with-icon {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    z-index: 1;
}

/* Password */
.password-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 20px;
    padding: 6px;
    z-index: 2;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* Tlačidlá */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(26, 43, 110, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-purple {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.btn-icon {
    font-size: 18px;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-container label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

/* Security info */
.security-info-box {
    background: linear-gradient(145deg, #ffffff, var(--primary-ultralight));
    border-radius: 24px;
    padding: 30px;
    margin: 25px 0 35px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(74, 100, 212, 0.2);
    box-shadow: 0 20px 40px -15px rgba(26, 43, 110, 0.3);
}

.security-info-box::after {
    content: '🔒';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 80px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.security-info-title {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-light);
}

.security-info-title span {
    font-size: 32px;
}

.security-info-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.security-info-content p {
    margin: 0;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(74, 100, 212, 0.15);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.security-info-content p:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -8px rgba(26, 43, 110, 0.2);
}

.security-info-content p i {
    font-size: 20px;
    color: var(--primary-color);
    min-width: 24px;
}

/* Switch link */
.switch-link {
    text-align: center;
    margin-top: 25px;
    padding: 20px 0 10px;
    border-top: 2px solid var(--border-light);
}

.switch-link p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

.switch-link a {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding: 2px 0;
    display: inline-block;
}

.switch-link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.switch-link a:hover::after {
    width: 100%;
}

/* Info card */
.info-card {
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-card.warning-card {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.info-card.success-card {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.info-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 5px solid var(--primary-ultralight);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Animácie */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}