/* Shared Styles for PE Linktree Staff Hub */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #78C8BD 0%, #6BD6B9 50%, #9AFFE7 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.container {
    max-width: 400px;
    width: 90%;
    margin-bottom: 2rem;
}

/* Common form/card styles */
.login-form,
.links-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Headings */
h1 {
    color: #454545;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Input styles */
.input-group {
    margin-bottom: 1rem;
    position: relative;
}

input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #D9D9D9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #454545;
}

input:focus {
    outline: none;
    border-color: #78C8BD;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(120, 200, 189, 0.3);
}

/* Button styles */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #78C8BD, #6BD6B9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-weight: 600;
}

.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #336E6A, #78C8BD);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(120, 200, 189, 0.4);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.logout-btn {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: rgba(166, 166, 166, 0.1);
    color: #A6A6A6;
    border: 2px solid rgba(166, 166, 166, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(166, 166, 166, 0.2);
    color: #454545;
}

/* Message styles */
.message {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.error-message {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.success-message {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

/* Dashboard specific styles */
.profile-section {
    margin-bottom: 2rem;
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #78C8BD, #6BD6B9);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.company-name {
    font-size: 1.5rem;
    color: #454545;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.tagline {
    color: #A6A6A6;
    font-size: 0.9rem;
}

.session-info {
    background: rgba(120, 200, 189, 0.1);
    border: 1px solid rgba(120, 200, 189, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #336E6A;
}

.link-item {
    display: block;
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #D9D9D9;
    border-radius: 15px;
    text-decoration: none;
    color: #454545;
    transition: all 0.3s ease;
    font-weight: 500;
}

.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(120, 200, 189, 0.2);
    border-color: #78C8BD;
    background: rgba(154, 255, 231, 0.15);
    color: #336E6A;
}

.link-item i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Footer */
.footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-align: center;
    margin-top: auto;
    padding: 1rem;
    width: 100%;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    body {
        padding: 1rem 0;
    }
    
    .container {
        margin-bottom: 1rem;
    }
    
    .login-form,
    .links-container {
        padding: 1.5rem;
    }

    .footer {
        padding: 0.5rem;
    }
}