/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #343a40;
    background-color: #f8f9fa;
}

/* Common Logo Styles */
.logo, .logo-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.logo::before, .logo-small::before {
    content: 'SSLab';
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo::after, .logo-small::after {
    content: '';
    position: absolute;
    background: #ffd700;
    border-radius: 50%;
}

/* Large Logo (Login Page) */
.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.logo::before {
    font-size: 16px;
}

.logo::after {
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Small Logo (Navigation) */
.logo-small {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.logo-small::before {
    font-size: 10px;
    letter-spacing: 0.3px;
}

.logo-small::after {
    top: 8px;
    right: 8px;
    width: 5px;
    height: 5px;
}

/* Company Name Styles */
.company-name, .company-name-nav {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-name {
    font-size: 32px;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.company-name-nav {
    font-size: 24px;
}

/* Common Button Styles */
.btn, .btn-cta, .login-btn {
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* Primary Button Gradient */
.btn-primary, .btn-primary-cta, .login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover, .btn-primary-cta:hover, .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Secondary Button */
.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: #495057;
    border-color: #495057;
}

/* Form Input Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

/* Common Link Styles */
a {
    transition: all 0.3s ease;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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