﻿/* Pharma ERP Login Styles - Professional Version */
:root {
    --pharma-primary: #1a5f7a;
    --pharma-secondary: #57cc99;
    --pharma-accent: #38b6ff;
    --pharma-dark: #003049;
    --pharma-light: #f8f9fa;
    --pharma-success: #2ecc71;
    --pharma-warning: #f39c12;
    --pharma-danger: #e74c3c;
    --pharma-gradient: linear-gradient(135deg, var(--pharma-primary), var(--pharma-secondary));
    --pharma-shadow: 0 10px 30px rgba(0, 48, 73, 0.1);
    --pharma-border: 1px solid rgba(0, 48, 73, 0.1);
    --pharma-radius: 12px;
    --pharma-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main Container */
.pharma-login-container-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.pharma-login-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 800px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--pharma-shadow);
    border: var(--pharma-border);
}

/* Left Panel - Login Form */
.pharma-form-section {
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pharma-light);
}

.pharma-form-wrapper {
    width: 100%;
    max-width: 480px;
}

/* Pharma Branding */
.pharma-brand {
    text-align: center;
    margin-bottom: 40px;
}

.pharma-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.pharma-logo-circle {
    position: relative;
    width: 70px;
    height: 70px;
    background: var(--pharma-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

    .pharma-logo-circle .pharma-ring {
        position: absolute;
        width: 84px;
        height: 84px;
        border: 2px solid rgba(86, 204, 153, 0.3);
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

.pharma-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pharma-dark);
    margin-bottom: 5px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--pharma-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pharma-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pharma-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(86, 204, 153, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--pharma-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Welcome Section */
.pharma-welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

    .pharma-welcome-section h2 {
        font-size: 1.8rem;
        color: var(--pharma-dark);
        margin-bottom: 10px;
        font-weight: 700;
    }

.pharma-welcome-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
}

.pharma-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pharma-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 48, 73, 0.1);
    transition: var(--pharma-transition);
}

    .pharma-indicator-dot.active {
        background: var(--pharma-secondary);
        width: 24px;
        border-radius: 4px;
    }

/* Form Styles */
.pharma-login-form {
    margin-bottom: 40px;
}

.pharma-validation-summary {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--pharma-radius);
    padding: 15px;
    margin-bottom: 20px;
    color: var(--pharma-danger);
    font-size: 0.9rem;
}

.pharma-form-group {
    margin-bottom: 25px;
}

.pharma-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--pharma-dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

    .pharma-form-label i {
        color: var(--pharma-primary);
    }

.pharma-input-container {
    position: relative;
    display: flex;
    align-items: center;
    border: var(--pharma-border);
    border-radius: var(--pharma-radius);
    background: white;
    transition: var(--pharma-transition);
    overflow: hidden;
}

    .pharma-input-container:focus-within {
        border-color: var(--pharma-accent);
        box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.1);
    }

.pharma-input-prefix {
    padding: 0 15px;
    color: var(--pharma-primary);
    font-size: 1.1rem;
}

.pharma-input {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--pharma-dark);
    outline: none;
}

    .pharma-input::placeholder {
        color: #adb5bd;
    }

.pharma-input-focus {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pharma-gradient);
    transition: var(--pharma-transition);
}

.pharma-input:focus ~ .pharma-input-focus {
    width: 100%;
}

.pharma-password-toggle {
    background: none;
    border: none;
    padding: 0 15px;
    color: #6c757d;
    cursor: pointer;
    transition: var(--pharma-transition);
}

    .pharma-password-toggle:hover {
        color: var(--pharma-primary);
    }

.pharma-password-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
}

    .pharma-password-info i {
        color: var(--pharma-accent);
    }

.pharma-validation-error {
    display: block;
    color: var(--pharma-danger);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Options Grid */
.pharma-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.pharma-checkbox-card {
    display: block;
    cursor: pointer;
    border: var(--pharma-border);
    border-radius: var(--pharma-radius);
    padding: 15px;
    transition: var(--pharma-transition);
    background: white;
}

    .pharma-checkbox-card:hover {
        border-color: var(--pharma-accent);
        transform: translateY(-2px);
        box-shadow: var(--pharma-shadow);
    }

.pharma-checkbox-input {
    display: none;
}

    .pharma-checkbox-input:checked + .pharma-checkbox-content .pharma-checkbox-icon {
        background: var(--pharma-gradient);
        color: white;
        transform: scale(1.1);
    }

.pharma-checkbox-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pharma-checkbox-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(86, 204, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pharma-secondary);
    font-size: 1rem;
    transition: var(--pharma-transition);
}

.pharma-checkbox-text {
    flex: 1;
}

.pharma-checkbox-title {
    display: block;
    font-weight: 600;
    color: var(--pharma-dark);
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.pharma-checkbox-desc {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Login Button */
.pharma-login-btn {
    position: relative;
    width: 100%;
    padding: 20px;
    background: var(--pharma-gradient);
    border: none;
    border-radius: var(--pharma-radius);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: var(--pharma-transition);
    margin-bottom: 20px;
}

    .pharma-login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(86, 204, 153, 0.3);
    }

    .pharma-login-btn:active {
        transform: translateY(0);
    }

.pharma-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pharma-btn-subtext {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
}

.pharma-btn-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pharma-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.pharma-login-btn.loading .pharma-btn-loader {
    opacity: 1;
}

.pharma-loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: bounce 1.4s infinite ease-in-out both;
}

    .pharma-loader-dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .pharma-loader-dot:nth-child(2) {
        animation-delay: -0.16s;
    }

/* Alternative Actions */
.pharma-alternative-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.pharma-link-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid rgba(0, 48, 73, 0.1);
    border-radius: var(--pharma-radius);
    color: var(--pharma-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--pharma-transition);
}

    .pharma-link-btn:hover {
        border-color: var(--pharma-accent);
        background: rgba(56, 182, 255, 0.05);
        transform: translateY(-1px);
    }

    .pharma-link-btn i {
        color: var(--pharma-primary);
    }

/* System Status */
.pharma-system-status {
    background: rgba(0, 48, 73, 0.05);
    border-radius: var(--pharma-radius);
    padding: 15px;
    margin: 30px 0;
    border: 1px solid rgba(0, 48, 73, 0.1);
}

.pharma-status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pharma-status-active {
    color: var(--pharma-success);
    font-size: 0.8rem;
}

.pharma-status-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
}

.pharma-version {
    font-weight: 600;
    color: var(--pharma-dark);
}

/* Footer */
.pharma-login-footer {
    text-align: center;
    margin-top: 40px;
}

.pharma-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pharma-footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--pharma-transition);
}

    .pharma-footer-link:hover {
        color: var(--pharma-primary);
    }

    .pharma-footer-link i {
        font-size: 0.9rem;
    }

.pharma-copyright {
    color: #adb5bd;
    font-size: 0.8rem;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Right Panel - Pharma Visual */
.pharma-visual-section {
    position: relative;
    background: var(--pharma-dark);
    overflow: hidden;
}

.pharma-visual-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pharma-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.4) contrast(1.2);
}

.pharma-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

/* Production Rings */
.pharma-production-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.pharma-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation: rotate 20s linear infinite;
}

.ring-2 {
    width: 450px;
    height: 450px;
    animation: rotate 30s linear infinite reverse;
}

.ring-3 {
    width: 600px;
    height: 600px;
    animation: rotate 40s linear infinite;
}

/* Floating Icons */
.pharma-floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.icon-production {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: rgba(56, 182, 255, 0.2);
}

.icon-quality {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
    background: rgba(46, 204, 113, 0.2);
}

.icon-distribution {
    bottom: 25%;
    left: 25%;
    animation-delay: 2s;
    background: rgba(243, 156, 18, 0.2);
}

.icon-research {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
    background: rgba(155, 89, 182, 0.2);
}

/* Visual Content */
.pharma-visual-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

.pharma-visual-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
}

    .pharma-visual-title i {
        color: var(--pharma-secondary);
        font-size: 2rem;
    }

    .pharma-visual-title h2 {
        font-size: inherit;
        font-weight: inherit;
    }

.highlight {
    color: var(--pharma-secondary);
    text-shadow: 0 0 10px rgba(86, 204, 153, 0.5);
}

.pharma-visual-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 500px;
}

/* Real-time Stats */
.pharma-real-time-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pharma-stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--pharma-radius);
    padding: 20px;
    text-align: center;
    transition: var(--pharma-transition);
}

    .pharma-stat-item:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-5px);
    }

.pharma-stat-icon {
    font-size: 2rem;
    color: var(--pharma-secondary);
    margin-bottom: 10px;
}

.pharma-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.pharma-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Compliance Badges */
.pharma-compliance-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.pharma-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--pharma-transition);
}

    .pharma-badge:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .pharma-badge i {
        color: var(--pharma-secondary);
    }

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .pharma-login-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .pharma-visual-section {
        display: none;
    }

    .pharma-form-section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .pharma-options-grid {
        grid-template-columns: 1fr;
    }

    .pharma-real-time-stats {
        grid-template-columns: 1fr;
    }

    .pharma-alternative-actions {
        flex-direction: column;
    }

    .pharma-footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pharma-title h1 {
        font-size: 2rem;
    }

    .pharma-logo-container {
        flex-direction: column;
        text-align: center;
    }

    .pharma-visual-title {
        font-size: 2rem;
    }
}
.pharma-logo-circle {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.pharma-symbol {
    width: 70px;
    height: 70px;
    z-index: 2;
    position: relative;
}

.capsule-body {
    fill: rgba(255, 255, 255, 0.95);
    stroke: #4a90e2;
    stroke-width: 2;
    filter: drop-shadow(0 2px 4px rgba(74, 144, 226, 0.3));
}

.capsule-line {
    stroke: #4a90e2;
    stroke-width: 1.5;
    stroke-dasharray: 4, 2;
    animation: dashMove 3s linear infinite;
}

.check-mark {
    fill: none;
    stroke: #2ecc71;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 1.5s ease forwards 0.5s;
}

.molecule {
    fill: #3498db;
    opacity: 0;
}

.molecule-1 {
    animation: float 4s ease-in-out infinite 0.2s;
}

.molecule-2 {
    animation: float 4s ease-in-out infinite 0.6s;
}

.molecule-3 {
    animation: float 4s ease-in-out infinite 0.9s;
}

.molecule-4 {
    animation: float 4s ease-in-out infinite 1.2s;
}

.pharma-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(74, 144, 226, 0.6);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.pharma-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes dashMove {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 10;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    25% {
        transform: translateY(-10px) translateX(5px);
        opacity: 0.7;
    }

    50% {
        transform: translateY(5px) translateX(-5px);
        opacity: 0.9;
    }

    75% {
        transform: translateY(-5px) translateX(8px);
        opacity: 0.7;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* تحسينات إضافية */
.pharma-logo-container {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(224, 224, 224, 0.3);
}

.pharma-title h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(90deg, #4a90e2, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pharma-subtitle {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.pharma-security-badge {
    margin-top: 10px;
    padding: 8px 15px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}