/**
 * Galactic EA AI - Form Styles
 * Optimized styling for request_license and extend_license pages
 */

/* ================================================================
   GALAXY THEME - Request License Page Styles
   Uses same galaxy background as other pages
   ================================================================ */
.request-license-container {
    background: transparent;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.license-form {
    background: linear-gradient(135deg, 
        rgba(10, 10, 26, 0.4) 0%, 
        rgba(26, 10, 46, 0.5) 50%,
        rgba(20, 15, 40, 0.4) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 650px;
    width: 100%;
    border: 2px solid rgba(123, 119, 198, 0.4);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(123, 119, 198, 0.4),
        0 0 100px rgba(255, 119, 198, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 60px rgba(123, 119, 198, 0.1);
    position: relative;
    z-index: 1;
}

/* Nebula Glow Effect */
.license-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(123, 119, 198, 0.2) 0%, 
        rgba(255, 119, 198, 0.15) 30%,
        transparent 70%);
    animation: nebulaPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes nebulaPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

.license-form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.license-form-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.license-form-header .header-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 119, 198, 0.8));
    text-shadow: 
        0 0 20px rgba(255, 119, 198, 0.6),
        0 0 40px rgba(123, 119, 198, 0.4);
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 119, 198, 0.8));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(255, 119, 198, 1));
    }
}

.license-form-header .header-text {
    background: linear-gradient(135deg, #ff77c6 0%, #7b77c6 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
    text-shadow: 
        0 0 20px rgba(255, 119, 198, 0.6),
        0 0 40px rgba(123, 119, 198, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.license-form-header p {
    color: #e0e7ff;
    font-size: 1.15rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #e0e7ff;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(123, 119, 198, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #ffffff;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 119, 198, 0.6);
    box-shadow: 
        0 0 0 4px rgba(255, 119, 198, 0.2),
        0 0 20px rgba(123, 119, 198, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 26, 0.8);
    transform: translateY(-2px);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #b8c5d6;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.8;
}

.form-submit-btn,
.btn-primary {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, 
        rgba(123, 119, 198, 0.8) 0%, 
        rgba(255, 119, 198, 0.7) 50%,
        rgba(0, 212, 255, 0.6) 100%);
    color: white;
    border: 2px solid rgba(255, 119, 198, 0.4);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 6px 20px rgba(123, 119, 198, 0.4),
        0 0 30px rgba(255, 119, 198, 0.3);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-submit-btn::before,
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.form-submit-btn:hover::before,
.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.form-submit-btn:hover,
.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 10px 40px rgba(123, 119, 198, 0.5),
        0 0 50px rgba(255, 119, 198, 0.4),
        0 0 80px rgba(0, 212, 255, 0.3);
    border-color: rgba(255, 119, 198, 0.6);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-submit-btn:active,
.btn-primary:active {
    transform: translateY(-2px) scale(1);
}

.form-submit-btn:disabled,
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.info-box {
    background: linear-gradient(135deg, 
        rgba(123, 119, 198, 0.15) 0%, 
        rgba(255, 119, 198, 0.1) 50%,
        rgba(0, 212, 255, 0.08) 100%);
    border-left: 4px solid rgba(255, 119, 198, 0.6);
    padding: 20px;
    margin-bottom: 28px;
    border-radius: 12px;
    color: #e0e7ff;
    line-height: 1.7;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(123, 119, 198, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.info-box * {
    position: relative;
    z-index: 1;
}

.info-box strong {
    color: #ff77c6;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 119, 198, 0.5);
}

.info-box p,
.info-box li {
    color: #e0e7ff;
}

.info-box code {
    background: rgba(10, 10, 26, 0.6);
    color: #00d4ff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.info-box ul,
.info-box ol {
    margin-left: 20px;
    line-height: 2;
}

.info-box .warning-text {
    margin-bottom: 10px;
    color: #ff6b6b;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.info-box .pro-tip {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 193, 7, 0.6);
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.1);
}

.info-box a {
    color: #7b77c6;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.info-box a:hover {
    color: #ff77c6;
    text-shadow: 0 0 10px rgba(255, 119, 198, 0.5);
}

#licenseForm {
    margin-top: 30px;
}

.result-box {
    margin-top: 28px;
    padding: 25px;
    border-radius: 12px;
    display: none;
    transition: all 0.3s ease;
}

.result-box.success {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
    color: #d4edda;
    display: block;
}

.result-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    color: #f8d7da;
    display: block;
}

.result-box h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
}

.result-box.success h3 {
    color: #22c55e;
}

.result-box.error h3 {
    color: #ef4444;
}

.result-box p {
    margin: 8px 0;
    line-height: 1.7;
}

.result-box strong {
    font-weight: 700;
}

/* Extend License Page Styles */
.extend-license-container {
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.extend-form {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 40px;
    background: linear-gradient(135deg, 
        rgba(10, 10, 26, 0.4) 0%, 
        rgba(26, 10, 46, 0.5) 50%,
        rgba(20, 15, 40, 0.4) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 2px solid rgba(123, 119, 198, 0.4);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(123, 119, 198, 0.4);
}

.extend-form h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
}

/* Message Boxes */
.message-box {
    padding: 18px;
    border-radius: 10px;
    margin: 20px 0;
    line-height: 1.7;
}

.message-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    color: #d4edda;
}

.message-box.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #f8d7da;
}

/* Code Blocks */
.code-block {
    background: rgba(0, 0, 0, 0.5);
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #334155;
}

.code-block pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    overflow-x: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .license-form,
    .extend-form {
        padding: 35px 25px;
    }
    
    .license-form-header h1,
    .extend-form h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .license-form,
    .extend-form {
        padding: 30px 20px;
    }
    
    .license-form-header h1,
    .extend-form h1 {
        font-size: 1.75rem;
    }
    
    .form-submit-btn,
    .btn-primary {
        padding: 14px 20px;
        font-size: 1rem;
    }
}
